]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
fixed a fd bug (thanks volker)
authorAndrew Tridgell <tridge@samba.org>
Mon, 16 Apr 2007 12:49:37 +0000 (22:49 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 16 Apr 2007 12:49:37 +0000 (22:49 +1000)
(This used to be ctdb commit 512a96de1b31e856785749ffc0bed60b1c589f9e)

ctdb/tests/lockwait.c

index 2c95bb7334ebad4e1496c9dea31aeaf4c1356ba9..6b26cdbbbb409e7fd982135cbb2b4f50eaa47ad5 100644 (file)
@@ -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);