Rev 112: fixed a fd bug (thanks volker) in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Mon Apr 16 12:49:38 GMT 2007


------------------------------------------------------------
revno: 112
revision-id: tridge at samba.org-20070416124937-1a78f1fe8ec2719f
parent: tridge at samba.org-20070416060137-6d90f720fec05ba5
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Mon 2007-04-16 22:49:37 +1000
message:
  fixed a fd bug (thanks volker)
modified:
  tests/lockwait.c               lockwait.c-20070416055753-3ztnb4cxqgamfudx-1
=== modified file 'tests/lockwait.c'
--- a/tests/lockwait.c	2007-04-16 06:01:37 +0000
+++ b/tests/lockwait.c	2007-04-16 12:49:37 +0000
@@ -42,6 +42,7 @@
 	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);



More information about the samba-cvs mailing list