From 69d9ff3f2573dc46d558a5134a93165a7ec212d0 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Wed, 15 Jul 2020 13:33:56 +0200 Subject: spawn: add optional stdin/stdout/stderr redirection FDs If not -1, spawn() will redirect the child's stdin/stdout/stderr to these FDs. --- spawn.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'spawn.h') diff --git a/spawn.h b/spawn.h index 129cadc2..2ab645a8 100644 --- a/spawn.h +++ b/spawn.h @@ -3,4 +3,5 @@ #include #include "reaper.h" -bool spawn(struct reaper *reaper, const char *cwd, char *const argv[]); +bool spawn(struct reaper *reaper, const char *cwd, char *const argv[], + int stdin_fd, int stdout_fd, int stderr_fd); -- cgit v1.3