[launchd-changes] [23921] trunk/launchd/src/launchd_unix_ipc.c

source_changes at macosforge.org source_changes at macosforge.org
Mon May 11 13:03:06 PDT 2009


Revision: 23921
          http://trac.macosforge.org/projects/launchd/changeset/23921
Author:   dsorresso at apple.com
Date:     2009-05-11 13:03:00 -0700 (Mon, 11 May 2009)
Log Message:
-----------
<rdar://problem/6873467> `launchctl start` sometimes reports a failure despite succeeding

Modified Paths:
--------------
    trunk/launchd/src/launchd_unix_ipc.c

Modified: trunk/launchd/src/launchd_unix_ipc.c
===================================================================
--- trunk/launchd/src/launchd_unix_ipc.c	2009-05-09 21:26:34 UTC (rev 23920)
+++ trunk/launchd/src/launchd_unix_ipc.c	2009-05-11 20:03:00 UTC (rev 23921)
@@ -396,8 +396,7 @@
 		} else {
 			if (!strcmp(cmd, LAUNCH_KEY_STARTJOB)) {
 				if ((j = job_find(launch_data_get_string(data))) != NULL) {
-					errno = 0;
-					job_dispatch(j, true);
+					errno = job_dispatch(j, true) ? 0 : errno;
 				}
 				resp = launch_data_new_errno(errno);
 			} else if (!strcmp(cmd, LAUNCH_KEY_STOPJOB)) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/launchd-changes/attachments/20090511/171461c9/attachment.html>


More information about the launchd-changes mailing list