Revision
23868
Author
dsorresso@apple.com
Date
2009-03-24 15:54:23 -0700 (Tue, 24 Mar 2009)

Log Message

<rdar://problem/6711188> System unable to fork. launchd chewing up resources

Modified Paths

Diff

Modified: trunk/launchd/src/launchd_core_logic.c (23867 => 23868)


--- trunk/launchd/src/launchd_core_logic.c	2009-03-24 22:27:19 UTC (rev 23867)
+++ trunk/launchd/src/launchd_core_logic.c	2009-03-24 22:54:23 UTC (rev 23868)
@@ -3567,6 +3567,7 @@
 	case -1:
 		job_log_error(j, LOG_ERR, "fork() failed, will try again in one second");
 		job_assumes(j, kevent_mod((uintptr_t)j, EVFILT_TIMER, EV_ADD|EV_ONESHOT, NOTE_SECONDS, 1, j) != -1);
+		job_ignore(j);
 		
 		job_assumes(j, runtime_close(execspair[0]) == 0);
 		job_assumes(j, runtime_close(execspair[1]) == 0);