Ensure reading the console still works in parallel startup

This commit is contained in:
Roy Marples 2007-09-29 10:17:28 +00:00
parent 162887c364
commit b153f67fe3

View File

@ -379,7 +379,7 @@ static bool svc_exec (const char *arg1, const char *arg2)
* good for us */ * good for us */
close (master_tty); close (master_tty);
dup2 (slave_tty, 0); dup2 (fileno (stdin), 0);
dup2 (slave_tty, 1); dup2 (slave_tty, 1);
dup2 (slave_tty, 2); dup2 (slave_tty, 2);
if (slave_tty > 2) if (slave_tty > 2)