svn commit: trunk/busybox: init loginutils shell
aldot at busybox.net
aldot at busybox.net
Fri May 26 14:24:59 UTC 2006
Author: aldot
Date: 2006-05-26 07:24:56 -0700 (Fri, 26 May 2006)
New Revision: 15192
Log:
- use portability wrapper define bb_setpgrp.
Modified:
trunk/busybox/init/init_shared.c
trunk/busybox/loginutils/login.c
trunk/busybox/shell/msh.c
Changeset:
Modified: trunk/busybox/init/init_shared.c
===================================================================
--- trunk/busybox/init/init_shared.c 2006-05-26 14:05:48 UTC (rev 15191)
+++ trunk/busybox/init/init_shared.c 2006-05-26 14:24:56 UTC (rev 15192)
@@ -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 @@
/* 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
Modified: trunk/busybox/loginutils/login.c
===================================================================
--- trunk/busybox/loginutils/login.c 2006-05-26 14:05:48 UTC (rev 15191)
+++ trunk/busybox/loginutils/login.c 2006-05-26 14:24:56 UTC (rev 15192)
@@ -147,7 +147,7 @@
else
snprintf ( fromhost, sizeof( fromhost ) - 1, " on `%.100s'", tty );
- setpgrp();
+ bb_setpgrp;
openlog ( "login", LOG_PID | LOG_CONS | LOG_NOWAIT, LOG_AUTH );
Modified: trunk/busybox/shell/msh.c
===================================================================
--- trunk/busybox/shell/msh.c 2006-05-26 14:05:48 UTC (rev 15191)
+++ trunk/busybox/shell/msh.c 2006-05-26 14:24:56 UTC (rev 15192)
@@ -3031,7 +3031,7 @@
} 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)
More information about the busybox-cvs
mailing list