Revision
23686
Author
dsorresso@apple.com
Date
2008-08-20 22:11:24 -0700 (Wed, 20 Aug 2008)

Log Message

Fixed an error code return.

Modified Paths

Diff

Modified: branches/PR-5898404/launchd/src/libvproc.c (23685 => 23686)


--- branches/PR-5898404/launchd/src/libvproc.c	2008-08-21 03:16:26 UTC (rev 23685)
+++ branches/PR-5898404/launchd/src/libvproc.c	2008-08-21 05:11:24 UTC (rev 23686)
@@ -646,13 +646,11 @@
 		break;
 	case VPROC_GSK_TRANSACTIONS_ENABLED:
 		/* Shared memory region is required for transactions. */
-		if (unlikely(vproc_shmem == NULL)) {
-			fprintf(stderr, "Initializing shmem...\n");
+		if( unlikely(vproc_shmem == NULL) ) {
 			int po_r = pthread_once(&shmem_inited, vproc_shmem_init);
-			if (po_r != 0 || vproc_shmem == NULL) {
-				fprintf(stderr, "pthread_once(): %d, vproc_shmem = %p\n", po_r, vproc_shmem);
+			if( po_r != 0 || vproc_shmem == NULL ) {
 				if( outval ) {
-					*outval = 0;
+					*outval = -1;
 				}
 				return (vproc_err_t)vproc_swap_integer;
 			}