aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-02-22 04:55:33 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-02-22 04:55:33 +0000
commitb7e8114067d3405692a428dc732ca4dc25163c72 (patch)
tree86efc37d9b1b07036be8b7cebf57ddf56fd58038 /init
parent859f41a3da90bf66c5b58864da3407f8a9fd0b67 (diff)
downloadbusybox-w32-b7e8114067d3405692a428dc732ca4dc25163c72.tar.gz
busybox-w32-b7e8114067d3405692a428dc732ca4dc25163c72.tar.bz2
busybox-w32-b7e8114067d3405692a428dc732ca4dc25163c72.zip
Make init compile when DEBUG_INIT is enabled
-Erik git-svn-id: svn://busybox.net/trunk/busybox@1880 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'init')
-rw-r--r--init/init.c5
1 files changed, 2 insertions, 3 deletions
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)
459 * specifies. 459 * specifies.
460 */ 460 */
461#ifdef DEBUG_INIT 461#ifdef DEBUG_INIT
462 pid_t shell_pgid = getpid();
463 message(LOG, "Waiting for enter to start '%s' (pid %d, console %s)\r\n", 462 message(LOG, "Waiting for enter to start '%s' (pid %d, console %s)\r\n",
464 command, shell_pgid, terminal); 463 command, getpid(), terminal);
465#endif 464#endif
466 write(fileno(stdout), press_enter, sizeof(press_enter) - 1); 465 write(fileno(stdout), press_enter, sizeof(press_enter) - 1);
467 getc(stdin); 466 getc(stdin);
@@ -470,7 +469,7 @@ static pid_t run(char *command, char *terminal, int get_enter)
470#ifdef DEBUG_INIT 469#ifdef DEBUG_INIT
471 /* Log the process name and args */ 470 /* Log the process name and args */
472 message(LOG, "Starting pid %d, console %s: '%s'\r\n", 471 message(LOG, "Starting pid %d, console %s: '%s'\r\n",
473 shell_pgid, terminal, command); 472 getpid(), terminal, command);
474#endif 473#endif
475 474
476 /* See if any special /bin/sh requiring characters are present */ 475 /* See if any special /bin/sh requiring characters are present */