mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
spawn/slave: restore signal mask after fork
slave: no need to restore signal handlers; they are automatically restored as long as they are not SIG_IGN (which they never are in foot). spawn(): restore signal mask after fork. This fixes an issue where a terminal spawned with ctrl+shift+n did not terminate when its shell exited. Closes #366
This commit is contained in:
parent
34f89fbe72
commit
dd5c31657e
4 changed files with 15 additions and 8 deletions
1
fdm.c
1
fdm.c
|
|
@ -27,7 +27,6 @@ struct fd_handler {
|
|||
};
|
||||
|
||||
struct sig_handler {
|
||||
int signo;
|
||||
fdm_signal_handler_t callback;
|
||||
void *callback_data;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue