Projects
Browse Source     Search     Timeline     Wiki

Changeset 23043

Show
Ignore:
Timestamp:
02/08/07 07:34:54 (22 months ago)
Author:
zarzycki@…
Message:

<rdar://problem/4983556> Shutdown sampling is holding up system shutdown

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/launchd/src/shutdown_debugger.c

    r22977 r23043  
    3434static void debug_machports(pid_t pid, const char *pname); 
    3535static void debug_machports2(pid_t pid, FILE *where); 
     36static void do_stackshot(void); 
    3637 
    3738static int kq; 
     
    7071 
    7172        closedir(thedir); 
     73 
     74        do_stackshot(); 
    7275 
    7376        assert((kq = kqueue()) != -1); 
     
    525528        return; 
    526529} 
     530 
     531void 
     532do_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}