#include <signal.h>
#include <stdlib.h>
+#include <sys/types.h>
#include <unistd.h>
#include <getopt.h>
#include <sys/reboot.h>
/* 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
else
snprintf ( fromhost, sizeof( fromhost ) - 1, " on `%.100s'", tty );
- setpgrp();
+ bb_setpgrp;
openlog ( "login", LOG_PID | LOG_CONS | LOG_NOWAIT, LOG_AUTH );
} 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)