Projects
Browse Source     Search     Timeline     Wiki

Changeset 23387

Show
Ignore:
Timestamp:
09/14/07 11:45:29 (15 months ago)
Author:
zarzycki@…
Message:

<rdar://problem/5482362> startupitem does not receive TERM signal

Files:
1 modified

Legend:

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

    r23194 r23387  
    4848static void     displayErrorMessages(StartupContext aStartupContext); 
    4949static pid_t    fwexec(const char *cmd, ...) __attribute__((sentinel)); 
     50static void     dummy_sig(int signo __attribute__((unused))) 
     51{ 
     52} 
    5053 
    5154int  
     
    6164        r = kevent(kq, &kev, 1, NULL, 0, NULL); 
    6265        assert(r != -1); 
    63         signal(SIGTERM, SIG_IGN); 
     66        signal(SIGTERM, dummy_sig); 
    6467 
    6568        while ((ch = getopt(argc, argv, "gvxirdDqn?")) != -1) {