macOS: Fix SIGUSR1 quitting kitty instead of reloading the config file
Fixes #3952
This commit is contained in:
parent
37735b962e
commit
44561e8cea
@ -24,6 +24,8 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
|
||||
- icat kitten: Fix display of JPEG images that are rotated via EXIF data and
|
||||
larger than available screen size (:iss:`3949`)
|
||||
|
||||
- macOS: Fix SIGUSR1 quitting kitty instead of reloading the config file (:iss:`3952`)
|
||||
|
||||
|
||||
0.23.1 [2021-08-17]
|
||||
----------------------
|
||||
|
||||
@ -106,7 +106,7 @@ install_signal_handlers(LoopData *ld) {
|
||||
signal_write_fd = ld->signal_fds[1];
|
||||
struct sigaction act = {.sa_handler=handle_signal};
|
||||
#define SA(which) { if (sigaction(which, &act, NULL) != 0) return false; if (siginterrupt(which, false) != 0) return false; }
|
||||
SA(SIGINT); SA(SIGTERM); SA(SIGCHLD);
|
||||
SA(SIGINT); SA(SIGTERM); SA(SIGCHLD); SA(SIGUSR1);
|
||||
#undef SA
|
||||
ld->signal_read_fd = ld->signal_fds[0];
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user