]> git.llucax.com Git - software/libev.git/commitdiff
doh, forgot destructors
authorroot <root>
Wed, 31 Oct 2007 21:34:45 +0000 (21:34 +0000)
committerroot <root>
Wed, 31 Oct 2007 21:34:45 +0000 (21:34 +0000)
ev.c

diff --git a/ev.c b/ev.c
index 8a09326689781cc46d8270135b2d77ca54622ec1..888c77952ed964285cbcb715da3dcd1ca6011f4d 100644 (file)
--- a/ev.c
+++ b/ev.c
@@ -742,11 +742,16 @@ evio_start (struct ev_io *w)
   ++fdchangecnt;
   array_needsize (fdchanges, fdchangemax, fdchangecnt, );
   fdchanges [fdchangecnt - 1] = fd;
   ++fdchangecnt;
   array_needsize (fdchanges, fdchangemax, fdchangecnt, );
   fdchanges [fdchangecnt - 1] = fd;
+
+  if (w->fd == 9)
+    printf ("start %p:%x\n", w, w->events);//D
 }
 
 void
 evio_stop (struct ev_io *w)
 {
 }
 
 void
 evio_stop (struct ev_io *w)
 {
+  if (w->fd == 9)
+    printf ("stop  %p:%x\n", w, w->events);//D
   ev_clear ((W)w);
   if (!ev_is_active (w))
     return;
   ev_clear ((W)w);
   if (!ev_is_active (w))
     return;