mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
spawn: add optional stdin/stdout/stderr redirection FDs
If not -1, spawn() will redirect the child's stdin/stdout/stderr to these FDs.
This commit is contained in:
parent
57f5cc1bf2
commit
69d9ff3f25
3 changed files with 11 additions and 5 deletions
3
spawn.h
3
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue