I committed the fflush in the wrong spot. I should go to bed

earlier so I don't screw up such easy stuff.
 -Erik
This commit is contained in:
Eric Andersen 2002-10-22 19:15:43 +00:00
parent f6f7bfb8e0
commit f02c26f1ef

View File

@ -627,8 +627,8 @@ static pid_t run(struct init_action *a)
messageND(LOG,
"Waiting for enter to start '%s' (pid %d, terminal %s)\n",
cmdpath, getpid(), a->terminal);
write(fileno(stdout), press_enter, sizeof(press_enter) - 1);
fflush(stdout);
write(fileno(stdout), press_enter, sizeof(press_enter) - 1);
getc(stdin);
}