aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-02-22 04:55:33 +0000
committerEric Andersen <andersen@codepoet.org>2001-02-22 04:55:33 +0000
commitdbcd8ce464afb6474698c19143265cf7572b6129 (patch)
tree86efc37d9b1b07036be8b7cebf57ddf56fd58038
parent7e9276b50a7aa948b2b4fe093e4049bbece4699c (diff)
downloadbusybox-dbcd8ce464afb6474698c19143265cf7572b6129.tar.gz
Make init compile when DEBUG_INIT is enabled
-Erik
-rw-r--r--init.c5
-rw-r--r--init/init.c5
2 files changed, 4 insertions, 6 deletions
diff --git a/init.c b/init.c
index 55a81d309..2657ec628 100644
--- a/init.c
+++ b/init.c
@@ -459,9 +459,8 @@ static pid_t run(char *command, char *terminal, int get_enter)
* specifies.
*/
#ifdef DEBUG_INIT
- pid_t shell_pgid = getpid();
message(LOG, "Waiting for enter to start '%s' (pid %d, console %s)\r\n",
- command, shell_pgid, terminal);
+ command, getpid(), terminal);
#endif
write(fileno(stdout), press_enter, sizeof(press_enter) - 1);
getc(stdin);
@@ -470,7 +469,7 @@ static pid_t run(char *command, char *terminal, int get_enter)
#ifdef DEBUG_INIT
/* Log the process name and args */
message(LOG, "Starting pid %d, console %s: '%s'\r\n",
- shell_pgid, terminal, command);
+ getpid(), terminal, command);
#endif
/* See if any special /bin/sh requiring characters are present */
diff --git a/init/init.c b/init/init.c
index 55a81d309..2657ec628 100644
--- a/init/init.c
+++ b/init/init.c
@@ -459,9 +459,8 @@ static pid_t run(char *command, char *terminal, int get_enter)
* specifies.
*/
#ifdef DEBUG_INIT
- pid_t shell_pgid = getpid();
message(LOG, "Waiting for enter to start '%s' (pid %d, console %s)\r\n",
- command, shell_pgid, terminal);
+ command, getpid(), terminal);
#endif
write(fileno(stdout), press_enter, sizeof(press_enter) - 1);
getc(stdin);
@@ -470,7 +469,7 @@ static pid_t run(char *command, char *terminal, int get_enter)
#ifdef DEBUG_INIT
/* Log the process name and args */
message(LOG, "Starting pid %d, console %s: '%s'\r\n",
- shell_pgid, terminal, command);
+ getpid(), terminal, command);
#endif
/* See if any special /bin/sh requiring characters are present */