diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-05-26 14:24:56 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-05-26 14:24:56 +0000 |
commit | b180e5a76678f697b2a368e2ef607d299d06a3ae (patch) | |
tree | 5584440b892d7cd966ab9db679af5531ac56104e /init/init_shared.c | |
parent | 08421e1d0cf1938947553b02b0788b09e11e5c0d (diff) | |
download | busybox-w32-b180e5a76678f697b2a368e2ef607d299d06a3ae.tar.gz busybox-w32-b180e5a76678f697b2a368e2ef607d299d06a3ae.tar.bz2 busybox-w32-b180e5a76678f697b2a368e2ef607d299d06a3ae.zip |
- use portability wrapper define bb_setpgrp.
Diffstat (limited to 'init/init_shared.c')
-rw-r--r-- | init/init_shared.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/init/init_shared.c b/init/init_shared.c index 51e1496c2..6404da55a 100644 --- a/init/init_shared.c +++ b/init/init_shared.c | |||
@@ -9,6 +9,7 @@ | |||
9 | 9 | ||
10 | #include <signal.h> | 10 | #include <signal.h> |
11 | #include <stdlib.h> | 11 | #include <stdlib.h> |
12 | #include <sys/types.h> | ||
12 | #include <unistd.h> | 13 | #include <unistd.h> |
13 | #include <getopt.h> | 14 | #include <getopt.h> |
14 | #include <sys/reboot.h> | 15 | #include <sys/reboot.h> |
@@ -26,7 +27,7 @@ int bb_shutdown_system(unsigned long magic) | |||
26 | /* Don't kill ourself */ | 27 | /* Don't kill ourself */ |
27 | signal(SIGTERM,SIG_IGN); | 28 | signal(SIGTERM,SIG_IGN); |
28 | signal(SIGHUP,SIG_IGN); | 29 | signal(SIGHUP,SIG_IGN); |
29 | setpgrp(); | 30 | bb_setpgrp; |
30 | 31 | ||
31 | /* Allow Ctrl-Alt-Del to reboot system. */ | 32 | /* Allow Ctrl-Alt-Del to reboot system. */ |
32 | #ifndef RB_ENABLE_CAD | 33 | #ifndef RB_ENABLE_CAD |