diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-05-26 14:24:56 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-05-26 14:24:56 +0000 |
commit | 73d6f297805faa5ab01168d0d29a723010e96730 (patch) | |
tree | 5584440b892d7cd966ab9db679af5531ac56104e | |
parent | d8b13fc98237d2f3f0afac43226364a9cdce055a (diff) | |
download | busybox-w32-73d6f297805faa5ab01168d0d29a723010e96730.tar.gz busybox-w32-73d6f297805faa5ab01168d0d29a723010e96730.tar.bz2 busybox-w32-73d6f297805faa5ab01168d0d29a723010e96730.zip |
- use portability wrapper define bb_setpgrp.
git-svn-id: svn://busybox.net/trunk/busybox@15192 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | init/init_shared.c | 3 | ||||
-rw-r--r-- | loginutils/login.c | 2 | ||||
-rw-r--r-- | shell/msh.c | 2 |
3 files changed, 4 insertions, 3 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 |
diff --git a/loginutils/login.c b/loginutils/login.c index 88123c0aa..46766c551 100644 --- a/loginutils/login.c +++ b/loginutils/login.c | |||
@@ -147,7 +147,7 @@ int login_main(int argc, char **argv) | |||
147 | else | 147 | else |
148 | snprintf ( fromhost, sizeof( fromhost ) - 1, " on `%.100s'", tty ); | 148 | snprintf ( fromhost, sizeof( fromhost ) - 1, " on `%.100s'", tty ); |
149 | 149 | ||
150 | setpgrp(); | 150 | bb_setpgrp; |
151 | 151 | ||
152 | openlog ( "login", LOG_PID | LOG_CONS | LOG_NOWAIT, LOG_AUTH ); | 152 | openlog ( "login", LOG_PID | LOG_CONS | LOG_NOWAIT, LOG_AUTH ); |
153 | 153 | ||
diff --git a/shell/msh.c b/shell/msh.c index 39aecdf10..d8353e0a2 100644 --- a/shell/msh.c +++ b/shell/msh.c | |||
@@ -3031,7 +3031,7 @@ forkexec(REGISTER struct op *t, int *pin, int *pout, int act, char **wp) | |||
3031 | } else { | 3031 | } else { |
3032 | /* put non-interactive processes into a different process group. | 3032 | /* put non-interactive processes into a different process group. |
3033 | * we don't support jobs, but this is at least sane: see Bug 659 */ | 3033 | * we don't support jobs, but this is at least sane: see Bug 659 */ |
3034 | setpgrp(); | 3034 | bb_setpgrp; |
3035 | } | 3035 | } |
3036 | 3036 | ||
3037 | if (t->type == TPAREN) | 3037 | if (t->type == TPAREN) |