From 40cf0121601f69a4f5c491ab1e2fd54bd7fe4b75 Mon Sep 17 00:00:00 2001 From: Marius Halden Date: Fri, 4 Nov 2016 14:02:37 +0100 Subject: Initial for executing filedescriptor --- batchd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'batchd.c') 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()"); -- cgit v1.2.3