[launchd-changes] [23624] trunk/launchd/src/libvproc.c
source_changes at macosforge.org
source_changes at macosforge.org
Fri May 9 13:10:10 PDT 2008
Revision: 23624
http://trac.macosforge.org/projects/launchd/changeset/23624
Author: zarzycki at apple.com
Date: 2008-05-09 13:10:09 -0700 (Fri, 09 May 2008)
Log Message:
-----------
<rdar://problem/5858877> Make vproc_transaction_{begin,end} available to command-line tools
Modified Paths:
--------------
trunk/launchd/src/libvproc.c
Modified: trunk/launchd/src/libvproc.c
===================================================================
--- trunk/launchd/src/libvproc.c 2008-05-09 20:05:28 UTC (rev 23623)
+++ trunk/launchd/src/libvproc.c 2008-05-09 20:10:09 UTC (rev 23624)
@@ -164,6 +164,10 @@
{
typeof(vproc_shmem->vp_shmem_transaction_cnt) newval;
+ if (unlikely(vproc_shmem == NULL)) {
+ return;
+ }
+
newval = __sync_sub_and_fetch(&vproc_shmem->vp_shmem_transaction_cnt, 1);
if (unlikely(newval < 0)) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/launchd-changes/attachments/20080509/2a953dd7/attachment-0001.html
More information about the launchd-changes
mailing list