------------------------------------------------------------
revno: 116
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Andrew Tridgell <[EMAIL PROTECTED]>
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;

Reply via email to