aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-12-21 14:29:42 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-12-21 14:29:42 +0000
commita484a65fefc89bce0f3b77503ad35bf86f329680 (patch)
tree30a06283899c86f50546d2775a6d674107a7772b /terminal.c
parentterm: term_spawn_new(): new function, spawns a new foot/footclient process (diff)
term: term_spawn_new: always spawn foot/footclient from PATH
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/terminal.c b/terminal.c
index 4dfe5128..bd79bd08 100644
--- a/terminal.c
+++ b/terminal.c
@@ -1672,7 +1672,7 @@ term_spawn_new(const struct terminal *term)
if (pid2 == 0) {
/* Child */
close(pipe_fds[0]);
- execl(term->foot_exe, term->foot_exe, NULL);
+ execlp(term->foot_exe, term->foot_exe, NULL);
write(pipe_fds[1], &errno, sizeof(errno));
_exit(errno);
}