mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 15:04:50 +02:00
forgot to close write end of pipe in parent
This commit is contained in:
@@ -412,6 +412,7 @@ handle_fast_commandline(CLISpec *cli_spec, const char *instance_group_prefix) {
|
|||||||
// wait until child has done setsid() before exiting so that it doesnt get a SIGHUP,
|
// wait until child has done setsid() before exiting so that it doesnt get a SIGHUP,
|
||||||
// see: https://github.com/kovidgoyal/kitty/issues/8680
|
// see: https://github.com/kovidgoyal/kitty/issues/8680
|
||||||
char buf[4];
|
char buf[4];
|
||||||
|
errno = 0; while (close(fds[1]) != 0 && errno == EINTR);
|
||||||
errno = 0; while(read(fds[0], buf, sizeof(buf)) == -1 && errno == EINTR);
|
errno = 0; while(read(fds[0], buf, sizeof(buf)) == -1 && errno == EINTR);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user