]> granicus.if.org Git - libevent/commitdiff
typo in kqueue delete; from Bert JW Regeer
authorNiels Provos <provos@gmail.com>
Sun, 3 Sep 2006 21:12:59 +0000 (21:12 +0000)
committerNiels Provos <provos@gmail.com>
Sun, 3 Sep 2006 21:12:59 +0000 (21:12 +0000)
svn:r232

kqueue.c
test/regress.c

index a92315fe674411946c90a89e9876580065080abd..08369c6dd51d93fd62dfbe0577ff0fae8105a6c5 100644 (file)
--- a/kqueue.c
+++ b/kqueue.c
@@ -356,7 +356,7 @@ kq_del(void *arg, struct event *ev)
                int nsignal = EVENT_SIGNAL(ev);
 
                memset(&kev, 0, sizeof(kev));
-               kev.ident = (int)signal;
+               kev.ident = nsignal;
                kev.filter = EVFILT_SIGNAL;
                kev.flags = EV_DELETE;
                
index 904e4288472e1fd79c674856d608c99b3fd36c8a..d0f135c057763aa56b3f8301265e0c654cc33e4f 100644 (file)
@@ -446,7 +446,8 @@ test_simplesignal(void)
 
        event_dispatch();
  skip_simplesignal:
-       signal_del(&ev);
+       if (signal_del(&ev) == -1)
+               test_ok = 0;
 
        cleanup_test();
 }