aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-05-21 18:17:29 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-05-21 18:17:29 +0000
commit789617d5ad3f4d7019e3086d515aa44f111dd0d8 (patch)
treecfbc1ccb4af025a3ee60046a411332c63cc6fdf3 /main.c
parentreaper: new module, uses a signalfd to wait() on child processes (diff)
term: don't double fork new terminal windows
Instead, register their PIDs with the new reaper module and let it handle them.
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index b7b051f5..d662cd72 100644
--- a/main.c
+++ b/main.c
@@ -390,14 +390,14 @@ main(int argc, char *const *argv)
goto out;
if (!as_server && (term = term_init(
- &conf, fdm, wayl, "foot", cwd, argc, argv,
+ &conf, fdm, reaper, wayl, "foot", cwd, argc, argv,
&term_shutdown_cb, &shutdown_ctx)) == NULL) {
free(cwd);
goto out;
}
free(cwd);
- if (as_server && (server = server_init(&conf, fdm, wayl)) == NULL)
+ if (as_server && (server = server_init(&conf, fdm, reaper, wayl)) == NULL)
goto out;
/* Remember to restore signals in slave */