summaryrefslogtreecommitdiffstats
path: root/batchd.c
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2016-11-04 14:02:37 +0100
committerMarius Halden <marius.h@lden.org>2016-11-04 14:02:37 +0100
commit40cf0121601f69a4f5c491ab1e2fd54bd7fe4b75 (patch)
tree0119b3b7b5c55aa81dbbed459ebc317a4d3c41cc /batchd.c
parentd7b994eccb760a68315fc48b1600f9164282a127 (diff)
downloadrunq-40cf0121601f69a4f5c491ab1e2fd54bd7fe4b75.tar.gz
runq-40cf0121601f69a4f5c491ab1e2fd54bd7fe4b75.tar.bz2
runq-40cf0121601f69a4f5c491ab1e2fd54bd7fe4b75.tar.xz
Initial for executing filedescriptor
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()");