projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jail: regroup add_path_and_deps() calls
[project/procd.git]
/
signal.c
diff --git
a/signal.c
b/signal.c
index
16824f7
..
07dda9a
100644
(file)
--- a/
signal.c
+++ b/
signal.c
@@
-35,6
+35,7
@@
static void signal_shutdown(int signal, siginfo_t *siginfo, void *data)
int event = 0;
char *msg = NULL;
int event = 0;
char *msg = NULL;
+#ifndef DISABLE_INIT
switch(signal) {
case SIGINT:
case SIGTERM:
switch(signal) {
case SIGINT:
case SIGTERM:
@@
-47,6
+48,7
@@
static void signal_shutdown(int signal, siginfo_t *siginfo, void *data)
msg = "poweroff";
break;
}
msg = "poweroff";
break;
}
+#endif
DEBUG(1, "Triggering %s\n", msg);
if (event)
DEBUG(1, "Triggering %s\n", msg);
if (event)
@@
-93,5
+95,7
@@
void procd_signal(void)
sigaction(SIGHUP, &sa_dummy, NULL);
sigaction(SIGKILL, &sa_dummy, NULL);
sigaction(SIGSTOP, &sa_dummy, NULL);
sigaction(SIGHUP, &sa_dummy, NULL);
sigaction(SIGKILL, &sa_dummy, NULL);
sigaction(SIGSTOP, &sa_dummy, NULL);
+#ifndef DISABLE_INIT
reboot(RB_DISABLE_CAD);
reboot(RB_DISABLE_CAD);
+#endif
}
}