[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.


  - Mark

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

          pthread_sigmask(SIG_SETMASK, &mask, NULL);
-        pause();
-        DISPATCH_CRASH("pause() returned");
+        for (;;) {
+            pause();
+        }
  #else /* !defined(__linux__) */
          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