Author: gonzalo
Date: 2005-04-13 11:22:11 -0400 (Wed, 13 Apr 2005)
New Revision: 42923

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/threadpool.c
Log:
2005-04-13 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * threadpool.c: some systems don't like a NULL when deleting the socket
        from epoll.



Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2005-04-13 15:16:04 UTC (rev 42922)
+++ trunk/mono/mono/metadata/ChangeLog  2005-04-13 15:22:11 UTC (rev 42923)
@@ -1,5 +1,10 @@
 2005-04-13 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
+       * threadpool.c: some systems don't like a NULL when deleting the socket
+       from epoll.
+
+2005-04-13 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
        * threadpool.c: fix semaphore allocation.
 
 2005-04-12 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

Modified: trunk/mono/mono/metadata/threadpool.c
===================================================================
--- trunk/mono/mono/metadata/threadpool.c       2005-04-13 15:16:04 UTC (rev 
42922)
+++ trunk/mono/mono/metadata/threadpool.c       2005-04-13 15:22:11 UTC (rev 
42923)
@@ -550,7 +550,7 @@
                                g_hash_table_replace (data->sock_to_state, 
GINT_TO_POINTER (fd), list);
                                evt->events = get_events_from_list (list);
 #ifdef EPOLL_DEBUG
-                       g_print ("MOD %d to %d\n", fd, evt->events);
+                               g_print ("MOD %d to %d\n", fd, evt->events);
 #endif
                                if (epoll_ctl (epollfd, EPOLL_CTL_MOD, fd, 
evt)) {
                                        int err = errno;
@@ -559,9 +559,9 @@
                        } else {
                                g_hash_table_remove (data->sock_to_state, 
GINT_TO_POINTER (fd));
 #ifdef EPOLL_DEBUG
-                       g_print ("DEL %d\n", fd);
+                               g_print ("DEL %d\n", fd);
 #endif
-                               if (epoll_ctl (epollfd, EPOLL_CTL_DEL, fd, 
NULL)) {
+                               if (epoll_ctl (epollfd, EPOLL_CTL_DEL, fd, 
evt)) {
                                        int err = errno;
                                        g_message ("epoll_ctl(DEL): %d %s", 
err, g_strerror (err));
                                }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to