Changeset 23043
- Timestamp:
- 02/08/07 07:34:54 (22 months ago)
- Files:
-
- 1 modified
-
trunk/launchd/src/shutdown_debugger.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/launchd/src/shutdown_debugger.c
r22977 r23043 34 34 static void debug_machports(pid_t pid, const char *pname); 35 35 static void debug_machports2(pid_t pid, FILE *where); 36 static void do_stackshot(void); 36 37 37 38 static int kq; … … 70 71 71 72 closedir(thedir); 73 74 do_stackshot(); 72 75 73 76 assert((kq = kqueue()) != -1); … … 525 528 return; 526 529 } 530 531 void 532 do_stackshot(void) 533 { 534 /* yes, we really mean to exec without fork at this point in time */ 535 execl("/usr/libexec/stackshot", "/usr/libexec/stackshot", "-i", "-f", "./shutdown-stackshot.log", NULL); 536 _exit(EXIT_FAILURE); 537 }

