[libdispatch-dev] [PATCH] libdispatch-r197_v2

Mark Heily mark at heily.com
Tue Jun 28 18:49:13 PDT 2011


See attached for a small update to the portability patch I sent out awhile 
back. This fixes a crash on Linux caused by a glibc bug in the pause() 
function. See below for the diff between v1 and v2 of the patch.

Regards,

  - Mark


@@ -115,8 +119,9 @@

          sigfillset(&mask);
          pthread_sigmask(SIG_SETMASK, &mask, NULL);
-        pause();
-        DISPATCH_CRASH("pause() returned");
+        for (;;) {
+            pause();
+        }
  #else /* !defined(__linux__) */
          pthread_exit(NULL);
          DISPATCH_CRASH("pthread_exit() returned");


-------------- next part --------------
A non-text attachment was scrubbed...
Name: libdispatch-r197_v2.patch
Type: text/x-patch
Size: 4619 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/libdispatch-dev/attachments/20110628/07747c21/attachment.bin>


More information about the libdispatch-dev mailing list