diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-05-21 18:17:29 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-05-21 18:17:29 +0000 |
| commit | 789617d5ad3f4d7019e3086d515aa44f111dd0d8 (patch) | |
| tree | cfbc1ccb4af025a3ee60046a411332c63cc6fdf3 /main.c | |
| parent | reaper: 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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |
