diff --git a/block/sheepdog.c b/block/sheepdog.c index a04ad99ead90b2036e5876f2ea059f5b28e0681e..df4f44107b32f540d26ae3e4763ee440841ef7cf 100644 --- a/block/sheepdog.c +++ b/block/sheepdog.c @@ -485,6 +485,7 @@ static int connect_to_sdog(const char *addr, const char *port) if (errno == EINTR) { goto reconnect; } + close(fd); break; }