summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2006-05-26 14:24:56 +0000
committerBernhard Reutner-Fischer2006-05-26 14:24:56 +0000
commitb180e5a76678f697b2a368e2ef607d299d06a3ae (patch)
tree5584440b892d7cd966ab9db679af5531ac56104e
parent08421e1d0cf1938947553b02b0788b09e11e5c0d (diff)
downloadbusybox-b180e5a76678f697b2a368e2ef607d299d06a3ae.zip
busybox-b180e5a76678f697b2a368e2ef607d299d06a3ae.tar.gz
- use portability wrapper define bb_setpgrp.
-rw-r--r--init/init_shared.c3
-rw-r--r--loginutils/login.c2
-rw-r--r--shell/msh.c2
3 files changed, 4 insertions, 3 deletions
diff --git a/init/init_shared.c b/init/init_shared.c
index 51e1496..6404da5 100644
--- a/init/init_shared.c
+++ b/init/init_shared.c
@@ -9,6 +9,7 @@
#include <signal.h>
#include <stdlib.h>
+#include <sys/types.h>
#include <unistd.h>
#include <getopt.h>
#include <sys/reboot.h>
@@ -26,7 +27,7 @@ int bb_shutdown_system(unsigned long magic)
/* Don't kill ourself */
signal(SIGTERM,SIG_IGN);
signal(SIGHUP,SIG_IGN);
- setpgrp();
+ bb_setpgrp;
/* Allow Ctrl-Alt-Del to reboot system. */
#ifndef RB_ENABLE_CAD
diff --git a/loginutils/login.c b/loginutils/login.c
index 88123c0..46766c5 100644
--- a/loginutils/login.c
+++ b/loginutils/login.c
@@ -147,7 +147,7 @@ int login_main(int argc, char **argv)
else
snprintf ( fromhost, sizeof( fromhost ) - 1, " on `%.100s'", tty );
- setpgrp();
+ bb_setpgrp;
openlog ( "login", LOG_PID | LOG_CONS | LOG_NOWAIT, LOG_AUTH );
diff --git a/shell/msh.c b/shell/msh.c
index 39aecdf..d8353e0 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)
} else {
/* put non-interactive processes into a different process group.
* we don't support jobs, but this is at least sane: see Bug 659 */
- setpgrp();
+ bb_setpgrp;
}
if (t->type == TPAREN)