Rev 118: fixed crash bug - thanks volker in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Mon Apr 16 23:10:52 GMT 2007


------------------------------------------------------------
revno: 118
revision-id: tridge at samba.org-20070416231052-ba2859722685ae37
parent: tridge at samba.org-20070416214127-25dea7f95ada8a59
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Tue 2007-04-17 09:10:52 +1000
message:
  fixed crash bug - thanks volker
modified:
  common/ctdb_lockwait.c         ctdb_lockwait.c-20070416214118-n1aeonljj3vpdd9q-1
=== modified file 'common/ctdb_lockwait.c'
--- a/common/ctdb_lockwait.c	2007-04-16 21:41:27 +0000
+++ b/common/ctdb_lockwait.c	2007-04-16 23:10:52 +0000
@@ -43,11 +43,12 @@
 						     struct lockwait_handle);
 	void (*callback)(void *) = h->callback;
 	void *p = h->private_data;
+	pid_t child = h->child;
 	talloc_set_destructor(h, NULL);
 	close(h->fd[0]);
 	talloc_free(h);	
 	callback(p);
-	waitpid(h->child, NULL, 0);
+	waitpid(child, NULL, 0);
 }
 
 static int lockwait_destructor(struct lockwait_handle *h)



More information about the samba-cvs mailing list