mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-12 05:34:01 -04:00
term: don't double fork new terminal windows
Instead, register their PIDs with the new reaper module and let it handle them.
This commit is contained in:
parent
f49742ebba
commit
789617d5ad
6 changed files with 62 additions and 60 deletions
4
main.c
4
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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue