diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-15 11:33:56 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-15 11:33:56 +0000 |
| commit | 69d9ff3f2573dc46d558a5134a93165a7ec212d0 (patch) | |
| tree | 88963222569800edc292dc9d2f81f12555fcbe82 /spawn.h | |
| parent | config: 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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |
