OSSP CVS Repository

ossp - Difference in ossp-pkg/pth/pth_lib.c versions 1.54 and 1.55
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/pth/pth_lib.c 1.54 -> 1.55

--- pth_lib.c    2002/11/03 11:15:04     1.54
+++ pth_lib.c    2002/11/09 16:29:26     1.55
@@ -73,7 +73,10 @@
     pth_syscall_init();
 
     /* initialize the scheduler */
-    pth_scheduler_init();
+    if (!pth_scheduler_init()) {
+        pth_shield { pth_syscall_kill(); }
+        return pth_error(FALSE, EAGAIN);
+    }
 
 #ifdef PTH_EX
     /* optional support for exceptional handling */
@@ -94,6 +97,7 @@
         pth_shield {
             pth_attr_destroy(t_attr);
             pth_scheduler_kill();
+            pth_syscall_kill();
         }
         return FALSE;
     }
@@ -110,6 +114,7 @@
         pth_shield {
             pth_attr_destroy(t_attr);
             pth_scheduler_kill();
+            pth_syscall_kill();
         }
         return FALSE;
     }

CVSTrac 2.0.1