mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-31 07:11:09 -04: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
|
|
@ -2248,7 +2248,8 @@ bool
|
|||
term_spawn_new(const struct terminal *term)
|
||||
{
|
||||
return spawn(
|
||||
term->reaper, term->cwd, (char *const []){term->foot_exe, NULL});
|
||||
term->reaper, term->cwd, (char *const []){term->foot_exe, NULL},
|
||||
-1, -1, -1);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue