[launchd-changes] [23685] branches/PR-5898404/launchd/src/libvproc.c
source_changes at macosforge.org
source_changes at macosforge.org
Wed Aug 20 20:16:26 PDT 2008
Revision: 23685
http://trac.macosforge.org/projects/launchd/changeset/23685
Author: dsorresso at apple.com
Date: 2008-08-20 20:16:26 -0700 (Wed, 20 Aug 2008)
Log Message:
-----------
Fixed a bug exposed by the other bug I was investigating.
Modified Paths:
--------------
branches/PR-5898404/launchd/src/libvproc.c
Modified: branches/PR-5898404/launchd/src/libvproc.c
===================================================================
--- branches/PR-5898404/launchd/src/libvproc.c 2008-08-21 01:08:33 UTC (rev 23684)
+++ branches/PR-5898404/launchd/src/libvproc.c 2008-08-21 03:16:26 UTC (rev 23685)
@@ -647,10 +647,14 @@
case VPROC_GSK_TRANSACTIONS_ENABLED:
/* Shared memory region is required for transactions. */
if (unlikely(vproc_shmem == NULL)) {
+ fprintf(stderr, "Initializing shmem...\n");
int po_r = pthread_once(&shmem_inited, vproc_shmem_init);
if (po_r != 0 || vproc_shmem == NULL) {
- *outval = 0;
- return NULL;
+ fprintf(stderr, "pthread_once(): %d, vproc_shmem = %p\n", po_r, vproc_shmem);
+ if( outval ) {
+ *outval = 0;
+ }
+ return (vproc_err_t)vproc_swap_integer;
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/launchd-changes/attachments/20080820/a539e432/attachment-0001.html
More information about the launchd-changes
mailing list