only loop on EINTR
This commit is contained in:
parent
57c1d9334d
commit
26b3a1e7f3
1 changed files with 2 additions and 2 deletions
|
|
@ -414,9 +414,9 @@ handle_fast_commandline(CLISpec *cli_spec, const char *instance_group_prefix) {
|
|||
errno = 0; while(read(fds[0], NULL, 0) == -1 && errno == EINTR);
|
||||
exit(0);
|
||||
}
|
||||
while (close(fds[0]) != 0);
|
||||
errno = 0; while (close(fds[0]) != 0 && errno == EINTR);
|
||||
setsid();
|
||||
while (close(fds[1]) != 0);
|
||||
errno = 0; while (close(fds[1]) != 0 && errno == EINTR);
|
||||
}
|
||||
}
|
||||
unsetenv("KITTY_SI_DATA");
|
||||
|
|
|
|||
Loading…
Reference in a new issue