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:
Daniel Eklöf 2021-02-21 11:57:38 +01:00
parent 34f89fbe72
commit dd5c31657e
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 15 additions and 8 deletions

View file

@ -81,6 +81,8 @@
`shift` to be pressed while used in a mouse grabbing
application. This meant the mouse event was never seen by the
application.
* Terminals spawned with `ctrl`+`shift`+`n` not terminating when
exiting shell (https://codeberg.org/dnkl/foot/issues/366).
### Security