Reset ignored signal handler in spawn() as well

このコミットが含まれているのは:
Devin J. Pohly 2023-06-15 23:57:16 -05:00 committed by Leonardo Hernández
コミット 9c592da01f
1個のファイルの変更3行の追加0行の削除

3
dwl.c
ファイルの表示

@ -2327,6 +2327,9 @@ void
spawn(const Arg *arg)
{
if (fork() == 0) {
struct sigaction sa = {.sa_flags = SA_RESTART, .sa_handler = SIG_DFL};
sigemptyset(&sa.sa_mask);
sigaction(SIGCHLD, &sa, NULL);
dup2(STDERR_FILENO, STDOUT_FILENO);
setsid();
execvp(((char **)arg->v)[0], (char **)arg->v);