mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
slave: restore SIGPIPE
This commit is contained in:
parent
59b5ba03c7
commit
fb488b6162
1 changed files with 2 additions and 1 deletions
3
slave.c
3
slave.c
|
|
@ -278,7 +278,8 @@ slave_spawn(int ptmx, int argc, const char *cwd, char *const *argv,
|
|||
sigset_t mask;
|
||||
sigemptyset(&mask);
|
||||
if (sigprocmask(SIG_SETMASK, &mask, NULL) < 0 ||
|
||||
sigaction(SIGHUP, &(struct sigaction){.sa_handler = SIG_DFL}, NULL) < 0)
|
||||
sigaction(SIGHUP, &(struct sigaction){.sa_handler = SIG_DFL}, NULL) < 0 ||
|
||||
sigaction(SIGPIPE, &(struct sigaction){.sa_handler = SIG_DFL}, NULL) < 0)
|
||||
{
|
||||
const int errno_copy = errno;
|
||||
LOG_ERRNO_P(errno, "failed to restore signals");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue