aboutsummaryrefslogtreecommitdiff
path: root/src/runscript.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-09-29 10:17:28 +0000
committerRoy Marples <roy@marples.name>2007-09-29 10:17:28 +0000
commitb153f67fe3e0df84a02bfc9cae6f2469ca793615 (patch)
tree369414dec8206d8a2926a7955a07b2630cb23d4a /src/runscript.c
parent162887c364a9352f8147e415236445d964db1493 (diff)
Ensure reading the console still works in parallel startup
Diffstat (limited to 'src/runscript.c')
-rw-r--r--src/runscript.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runscript.c b/src/runscript.c
index bd404cd2..49048044 100644
--- a/src/runscript.c
+++ b/src/runscript.c
@@ -379,7 +379,7 @@ static bool svc_exec (const char *arg1, const char *arg2)
* good for us */
close (master_tty);
- dup2 (slave_tty, 0);
+ dup2 (fileno (stdin), 0);
dup2 (slave_tty, 1);
dup2 (slave_tty, 2);
if (slave_tty > 2)