From: Andrew Tridgell Date: Mon, 16 Apr 2007 12:49:37 +0000 (+1000) Subject: fixed a fd bug (thanks volker) X-Git-Tag: tevent-0.9.20~348^2~2919 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3ed006ef490cd09361abad49bbca95cc46dfbc2;p=thirdparty%2Fsamba.git fixed a fd bug (thanks volker) (This used to be ctdb commit 512a96de1b31e856785749ffc0bed60b1c589f9e) --- diff --git a/ctdb/tests/lockwait.c b/ctdb/tests/lockwait.c index 2c95bb7334e..6b26cdbbbb4 100644 --- a/ctdb/tests/lockwait.c +++ b/ctdb/tests/lockwait.c @@ -42,6 +42,7 @@ static void lockwait_handler(struct event_context *ev, struct fd_event *fde, void (*callback)(void *) = h->callback; void *p = h->private_data; talloc_set_destructor(h, NULL); + close(h->fd[0]); talloc_free(h); callback(p); waitpid(h->child, NULL, 0);