aboutsummaryrefslogtreecommitdiff
path: root/spawn.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-15 11:33:56 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-15 11:33:56 +0000
commit69d9ff3f2573dc46d558a5134a93165a7ec212d0 (patch)
tree88963222569800edc292dc9d2f81f12555fcbe82 /spawn.h
parentconfig: add support for appending a 'spawn' argument to key bindings (diff)
spawn: add optional stdin/stdout/stderr redirection FDs
If not -1, spawn() will redirect the child's stdin/stdout/stderr to these FDs.
Diffstat (limited to 'spawn.h')
-rw-r--r--spawn.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/spawn.h b/spawn.h
index 129cadc2..2ab645a8 100644
--- a/spawn.h
+++ b/spawn.h
@@ -3,4 +3,5 @@
#include <stdbool.h>
#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);