Re: [dev] [dwm] with SIGCHLD commit, dwm cannot launch dmenu_extended.

From: Storkman <>
Date: Sat, 8 Apr 2023 23:02:56 +0200

On Sat, Apr 08, 2023 at 04:28:15PM +0200, wrote:
> Hello everyone,
> I bind keyboard shortcut to launch dmenu_extended[1] in dwm, what works
> flawlessly before the `Use sigaction(SA_NOCLDWAIT) for SIGCHLD
> handling` [1] commit, since dmenu_extended does not change anything here,
> is this a regression or bug introduced with this commit or
> dmenu_extended need to adapt to conform the change? thanks.

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 would explain why running programs affected by this through st works,
since it runs "signal(SIGCHLD, SIG_DFL)" before executing the shell (st.c:715).

Adding "signal(SIGCHLD, SIG_DFL)" before execvp in spawn() at dwm.c:1657 fixes
anki and mpv with youtube-dl for me.

> [1]
> [2]
Received on Sat Apr 08 2023 - 23:02:56 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 09 2023 - 00:36:08 CEST