X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fproto.c;h=becf27c3d88ac728254953dd587b4105bbb8f0c2;hp=cd61f18dd1d9bffc36fd3ae13f3402206593f2ce;hb=2069ade88144d8efd272a74be24b5c9ff49844dc;hpb=170f262f0413de843af62b968f6d12c1c476ae7f diff --git a/daemon/proto.c b/daemon/proto.c index cd61f18..becf27c 100644 --- a/daemon/proto.c +++ b/daemon/proto.c @@ -51,6 +51,14 @@ main_loop (int _sock) sock = _sock; for (;;) { +#if 0 + /* Most common errors are leaked memory and leaked file descriptors, + * so run this between each command: + */ + if (verbose) + system ("ls -l /proc/self/fd"); +#endif + /* Read the length word. */ xread (sock, lenbuf, 4); xdrmem_create (&xdr, lenbuf, 4, XDR_DECODE);