Modified: trunk/launchd/src/SystemStarter.c (23386 => 23387)
--- trunk/launchd/src/SystemStarter.c 2007-09-14 01:25:49 UTC (rev 23386)
+++ trunk/launchd/src/SystemStarter.c 2007-09-14 18:45:29 UTC (rev 23387)
@@ -47,6 +47,9 @@
static int system_starter(Action anAction, const char *aService);
static void displayErrorMessages(StartupContext aStartupContext);
static pid_t fwexec(const char *cmd, ...) __attribute__((sentinel));
+static void dummy_sig(int signo __attribute__((unused)))
+{
+}
int
main(int argc, char *argv[])
@@ -60,7 +63,7 @@
EV_SET(&kev, SIGTERM, EVFILT_SIGNAL, EV_ADD, 0, 0, 0);
r = kevent(kq, &kev, 1, NULL, 0, NULL);
assert(r != -1);
- signal(SIGTERM, SIG_IGN);
+ signal(SIGTERM, dummy_sig);
while ((ch = getopt(argc, argv, "gvxirdDqn?")) != -1) {
switch (ch) {