Changeset 23469
- Timestamp:
- 12/19/07 09:40:56 (12 months ago)
- Location:
- trunk/launchd/src
- Files:
-
- 2 modified
-
launchd_core_logic.c (modified) (1 diff)
-
launchd_runtime.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/launchd/src/launchd_core_logic.c
r23468 r23469 2085 2085 2086 2086 if (j->log_redirect_fd && !j->legacy_LS_job) { 2087 job_assumes(j, runtime_close(j->log_redirect_fd) != -1); 2088 j->log_redirect_fd = 0; 2087 job_log_stdouterr(j); /* one last chance */ 2088 2089 if (j->log_redirect_fd) { 2090 job_assumes(j, runtime_close(j->log_redirect_fd) != -1); 2091 j->log_redirect_fd = 0; 2092 } 2089 2093 } 2090 2094 -
trunk/launchd/src/launchd_runtime.c
r23466 r23469 1184 1184 1185 1185 if (!(LOG_MASK(attr->priority) & internal_mask_pri)) { 1186 goto out;1186 return; 1187 1187 } 1188 1188 … … 1190 1190 vsnprintf(newmsg, sizeof(newmsg), message, args); 1191 1191 logmsg_add(attr, saved_errno, newmsg); 1192 goto out;1192 return; 1193 1193 } 1194 1194 … … 1212 1212 1213 1213 if (ourlogfile == NULL) { 1214 goto out;1214 return; 1215 1215 } 1216 1216 1217 1217 if (message == NULL) { 1218 goto out;1218 return; 1219 1219 } 1220 1220 … … 1249 1249 1250 1250 vfprintf(ourlogfile, newmsg, args); 1251 1252 out:1253 runtime_log_uncork_pending_drain();1254 1251 } 1255 1252 … … 1376 1373 return; 1377 1374 } else if (getpid() == 1) { 1375 runtime_log_uncork_pending_drain(); 1378 1376 return; 1379 1377 }

