diff options
author | Marius Halden <marius.h@lden.org> | 2016-11-04 14:02:37 +0100 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2016-11-04 14:02:37 +0100 |
commit | 40cf0121601f69a4f5c491ab1e2fd54bd7fe4b75 (patch) | |
tree | 0119b3b7b5c55aa81dbbed459ebc317a4d3c41cc /batchd.c | |
parent | d7b994eccb760a68315fc48b1600f9164282a127 (diff) | |
download | runq-40cf0121601f69a4f5c491ab1e2fd54bd7fe4b75.tar.gz runq-40cf0121601f69a4f5c491ab1e2fd54bd7fe4b75.tar.bz2 runq-40cf0121601f69a4f5c491ab1e2fd54bd7fe4b75.tar.xz |
Initial for executing filedescriptor
Diffstat (limited to 'batchd.c')
-rw-r--r-- | batchd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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()"); |