macOS: Fix SIGUSR1 quitting kitty instead of reloading the config file

Fixes #3952
This commit is contained in:
Kovid Goyal 2021-08-19 09:37:08 +05:30
parent 37735b962e
commit 44561e8cea
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 1 deletions

View File

@ -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]
----------------------

View File

@ -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