Changeset 23368
- Timestamp:
- 09/10/07 13:43:52 (15 months ago)
- Files:
-
- 1 modified
-
trunk/launchd/src/launchd_core_logic.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/launchd/src/launchd_core_logic.c
r23366 r23368 640 640 } 641 641 642 static void 643 still_alive_with_check(void) 644 { 645 jobmgr_log(root_jobmgr, LOG_NOTICE, "Still alive with %u children.", total_children); 646 647 runtime_closelog(); /* hack to flush logs */ 648 } 649 642 650 jobmgr_t 643 651 jobmgr_shutdown(jobmgr_t jm) … … 663 671 664 672 if (debug_shutdown_hangs && jm->parentmgr == NULL && getpid() == 1) { 665 jobmgr_assumes(jm, kevent_mod((uintptr_t)jm, EVFILT_TIMER, EV_ADD, NOTE_SECONDS, 3, jm) != -1);673 runtime_set_timeout(still_alive_with_check, 3000); 666 674 } 667 675 … … 2242 2250 break; 2243 2251 case EVFILT_TIMER: 2244 if ( kev->ident == (uintptr_t)&sorted_calendar_events) {2252 if (jobmgr_assumes(jm, kev->ident == (uintptr_t)&sorted_calendar_events)) { 2245 2253 calendarinterval_callback(); 2246 } else {2247 jobmgr_log(jm, LOG_NOTICE, "Still alive with %u children.", total_children);2248 runtime_closelog(); /* hack to flush logs */2249 2254 } 2250 2255 break;

