Rev 116: wait on the right fd .... in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Mon Apr 16 14:11:04 GMT 2007


------------------------------------------------------------
revno: 116
revision-id: tridge at samba.org-20070416141104-3c489b41c92932d3
parent: tridge at samba.org-20070416135214-cb85876867405bbf
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Tue 2007-04-17 00:11:04 +1000
message:
  wait on the right fd ....
modified:
  tests/lockwait.c               lockwait.c-20070416055753-3ztnb4cxqgamfudx-1
=== modified file 'tests/lockwait.c'
--- a/tests/lockwait.c	2007-04-16 12:49:37 +0000
+++ b/tests/lockwait.c	2007-04-16 14:11:04 +0000
@@ -41,6 +41,7 @@
 						     struct lockwait_handle);
 	void (*callback)(void *) = h->callback;
 	void *p = h->private_data;
+	printf("%s\n", __location__);
 	talloc_set_destructor(h, NULL);
 	close(h->fd[0]);
 	talloc_free(h);	
@@ -103,7 +104,7 @@
 	close(h->fd[1]);
 	talloc_set_destructor(h, lockwait_destructor);
 
-	h->fde = event_add_fd(ev, h, fd, EVENT_FD_READ, lockwait_handler, h);
+	h->fde = event_add_fd(ev, h, h->fd[0], EVENT_FD_READ, lockwait_handler, h);
 	if (h->fde == NULL) {
 		talloc_free(h);
 		return NULL;



More information about the samba-cvs mailing list