...
This commit is contained in:
parent
94f90479a3
commit
57c1d9334d
1 changed files with 2 additions and 0 deletions
|
|
@ -409,6 +409,8 @@ handle_fast_commandline(CLISpec *cli_spec, const char *instance_group_prefix) {
|
|||
reopen_or_fail(detached_log, "ab", stderr);
|
||||
#undef reopen_or_fail
|
||||
if (fork() != 0) {
|
||||
// wait until child has done setsid() before exiting so that it doesnt get a SIGHUP,
|
||||
// see: https://github.com/kovidgoyal/kitty/issues/8680
|
||||
errno = 0; while(read(fds[0], NULL, 0) == -1 && errno == EINTR);
|
||||
exit(0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue