[launchd-changes] [23193] trunk/launchd/src/SystemStarter.c
source_changes at macosforge.org
source_changes at macosforge.org
Thu Mar 29 19:54:51 PDT 2007
Revision: 23193
http://trac.macosforge.org/projects/launchd/changeset/23193
Author: zarzycki at apple.com
Date: 2007-03-29 19:54:51 -0700 (Thu, 29 Mar 2007)
Log Message:
-----------
<rdar://problem/4956214> leopard: regression: rc.local not supported
Modified Paths:
--------------
trunk/launchd/src/SystemStarter.c
Modified: trunk/launchd/src/SystemStarter.c
===================================================================
--- trunk/launchd/src/SystemStarter.c 2007-03-29 22:39:26 UTC (rev 23192)
+++ trunk/launchd/src/SystemStarter.c 2007-03-30 02:54:51 UTC (rev 23193)
@@ -148,7 +148,7 @@
system_starter(kActionStart, NULL);
if (stat("/etc/rc.local", &sb) != -1) {
- const char *rc_local_cmd[] = { "_PATH_BSHELL", "/etc/rc.local", NULL };
+ const char *rc_local_cmd[] = { _PATH_BSHELL, "/etc/rc.local", NULL };
fwexec(rc_local_cmd, true);
}
@@ -164,7 +164,7 @@
assert(kev.filter == EVFILT_SIGNAL && kev.ident == SIGTERM);
if (stat("/etc/rc.shutdown.local", &sb) != -1) {
- const char *rc_shutdown_local_cmd[] = { "_PATH_BSHELL", "/etc/rc.shutdown.local", NULL };
+ const char *rc_shutdown_local_cmd[] = { _PATH_BSHELL, "/etc/rc.shutdown.local", NULL };
fwexec(rc_shutdown_local_cmd, true);
}
@@ -409,7 +409,6 @@
case -1:
return -1;
case 0:
- setsid();
execvp(argv[0], (char *const *)argv);
_exit(EXIT_FAILURE);
break;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/launchd-changes/attachments/20070329/63df32e3/attachment.html
More information about the launchd-changes
mailing list