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. --- terminal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'terminal.c') diff --git a/terminal.c b/terminal.c index 53640baa..c720aea4 100644 --- a/terminal.c +++ b/terminal.c @@ -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 -- cgit v1.3