20 Commits

Author SHA1 Message Date
pagedown
0d116e6ef0
Use four spaces to indent 2022-08-08 22:31:55 +05:30
Kovid Goyal
4c2800b294
mask handled signals when running the signal handler 2022-07-10 12:52:51 +05:30
Kovid Goyal
8358377ec3
Fix reading multiple signals from buffer on macOS 2022-07-10 12:07:54 +05:30
Kovid Goyal
fb8eb69c20
... 2022-07-03 20:51:59 +05:30
Kovid Goyal
5f13946bac
Allow using our signal handlers in python event loops via an fd
pythons signal fd only return signal numbers not the full siginfo struct
2022-06-13 18:52:23 +05:30
Kovid Goyal
18dd13c872
Make init_loop_data a little safer to use 2022-06-08 15:10:52 +05:30
Kovid Goyal
4ed6364b61
Fix compiler warning on 32bit builds 2022-06-06 07:19:52 +05:30
Kovid Goyal
c004fd1f4d
Declare the set of handled signals in only one place 2022-06-05 08:01:26 +05:30
Kovid Goyal
f29039db29
Make the full signal info available in our signal handler 2022-06-05 07:22:38 +05:30
Kovid Goyal
bf4dc6365a
Add support for sigqueue() and also handle SIGUSR2
I anticipate using sigqueue() for simpler handling of SIGCHLD
notifications from the prewram process to the its parent.
2022-06-04 14:09:45 +05:30
Kovid Goyal
44561e8cea
macOS: Fix SIGUSR1 quitting kitty instead of reloading the config file
Fixes #3952
2021-08-19 09:37:08 +05:30
Kovid Goyal
df05339d2a
Allow reloading config by sending the SIGUSR1 signal 2021-06-07 20:51:45 +05:30
Kovid Goyal
d55fde9eea
Use EINTR safe wrappers for open() and shm_open() 2021-01-31 07:02:11 +05:30
Kovid Goyal
c0ff39c59d
Fix extra close for loops with no signal_read_fd 2020-07-14 20:23:45 +05:30
Kovid Goyal
392f576d07
Instrument safe_close() to make it easy to see where an fd is closed from 2020-07-14 20:18:04 +05:30
Kovid Goyal
698569536d
Output which loo could not be woken up 2019-09-08 14:58:11 +05:30
Kovid Goyal
29ad6fba22
Linux: Use eventfd rather than a pipe for loop wakeup 2019-07-05 14:54:54 +05:30
Kovid Goyal
c848c3ee0d
Use an interrupt-safe close() 2019-07-05 14:39:07 +05:30
Kovid Goyal
547132131a
Linux: use signalfd rather than a pipe to handle signals 2019-07-05 14:33:22 +05:30
Kovid Goyal
5dc4e79c8d
Move code to handle loop wakeup and signals into its own module 2019-07-05 12:19:37 +05:30