restore SIGCHLD sighandler to default before spawning a program
commit97ba13b1eb4756fb1a024fd1e83df6e393befd27
authorHiltjo Posthuma <hiltjo@codemadness.org>
Sun, 9 Apr 2023 10:47:07 +0000 (9 12:47 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Sun, 9 Apr 2023 10:47:07 +0000 (9 12:47 +0200)
tree7dbb44ca15b5b57f5674bf863b075a71efc2fb59
parent66ef5f33e9987b70e2457c4a459f7ed84184604b
restore SIGCHLD sighandler to default before spawning a program

From sigaction(2):
A child created via fork(2) inherits a copy of its parent's signal dispositions.
During an execve(2), the dispositions of handled signals are reset to the default;
the dispositions of ignored signals are left unchanged.

This refused to start directly some programs from configuring in config.h:

Some reported programs that didn't start were: mpv.

Similar to the commit e81f17d4c196aaed6893fd4beed49991caa3e2a4 from dwm.
tabbed.c