--- nbd-2.9.20/nbd-client.c 2009-08-05 11:52:04.000000000 +0200 +++ nbd-2.9.20/nbd-client.c 2009-08-05 11:54:20.000000000 +0200 @@ -62,6 +62,7 @@ len=read(fd, buf, 256); buf[len-1]='\0'; if(do_print) printf("%s\n", buf); + close (fd); return 0; }