I committed the fflush in the wrong spot. I should go to bed
authorEric Andersen <andersen@codepoet.org>
Tue, 22 Oct 2002 19:15:43 +0000 (19:15 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 22 Oct 2002 19:15:43 +0000 (19:15 -0000)
earlier so I don't screw up such easy stuff.
 -Erik

init/init.c

index 9a4c9669cbd9cc81f7549b2570cfb1be28cc7182..79ab78fc240f23d09e4d1395d7e1518744d5d753 100644 (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);
                }