summaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'init.c')
-rw-r--r--init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/init.c b/init.c
index 7af8c4a..7e821f1 100644
--- a/init.c
+++ b/init.c
@@ -448,14 +448,13 @@ static pid_t run(char *command, char *terminal, int get_enter)
* be allowed to start a shell or whatever an init script
* specifies.
*/
- char c;
#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);
#endif
write(fileno(stdout), press_enter, sizeof(press_enter) - 1);
- read(fileno(stdin), &c, 1);
+ getc(stdin);
}
#ifdef DEBUG_INIT