[launchd-changes] [23103] trunk/launchd/src/launchd_core_logic.c
source_changes at macosforge.org
source_changes at macosforge.org
Fri Feb 23 08:53:43 PST 2007
Revision: 23103
http://trac.macosforge.org/projects/launchd/changeset/23103
Author: zarzycki at apple.com
Date: 2007-02-23 08:53:43 -0800 (Fri, 23 Feb 2007)
Log Message:
-----------
More Logging.
Modified Paths:
--------------
trunk/launchd/src/launchd_core_logic.c
Modified: trunk/launchd/src/launchd_core_logic.c
===================================================================
--- trunk/launchd/src/launchd_core_logic.c 2007-02-23 16:35:27 UTC (rev 23102)
+++ trunk/launchd/src/launchd_core_logic.c 2007-02-23 16:53:43 UTC (rev 23103)
@@ -2256,8 +2256,7 @@
SLIST_FOREACH(li, &j->limits, sle) {
struct rlimit rl;
- if (getrlimit(li->which, &rl) == -1) {
- job_log_error(j, LOG_WARNING, "getrlimit()");
+ if (!job_assumes(j, getrlimit(li->which, &rl) != -1)) {
continue;
}
@@ -2278,19 +2277,17 @@
}
if (j->low_pri_io) {
- if (setiopolicy_np(IOPOL_TYPE_DISK, IOPOL_SCOPE_PROCESS, IOPOL_THROTTLE) == -1) {
- job_log_error(j, LOG_WARNING, "setiopolicy_np()");
- }
+ job_assumes(j, setiopolicy_np(IOPOL_TYPE_DISK, IOPOL_SCOPE_PROCESS, IOPOL_THROTTLE) != -1);
}
if (j->rootdir) {
- chroot(j->rootdir);
- chdir(".");
+ job_assumes(j, chroot(j->rootdir) != -1);
+ job_assumes(j, chdir(".") != -1);
}
job_postfork_become_user(j);
if (j->workingdir) {
- chdir(j->workingdir);
+ job_assumes(j, chdir(j->workingdir) != -1);
}
if (j->setmask) {
@@ -2306,7 +2303,7 @@
setenv(ei->key, ei->value, 1);
}
- setsid();
+ job_assumes(j, setsid() != -1);
}
void
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/launchd-changes/attachments/20070223/b9d4e373/attachment.html
More information about the launchd-changes
mailing list