summaryrefslogtreecommitdiffstats
path: root/batchd.c
diff options
context:
space:
mode:
Diffstat (limited to 'batchd.c')
-rw-r--r--batchd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/batchd.c b/batchd.c
index c2cadc8..75930b7 100644
--- a/batchd.c
+++ b/batchd.c
@@ -33,7 +33,7 @@ run_job(char *queuedir, int fd)
return -1;
case 0:
asprintf(&run, "%s/run", queuedir);
- dup2(fd, STDIN_FILENO);
+ dup2(fd, 3);
close(fd);
execl(run, "run", (char*)NULL);
perror("execle()");