vene signal changes in dwm and status bar upgrades

This commit is contained in:
vrd
2026-07-30 11:54:49 +03:00
committed by Venelin Dechkov
parent 336575522b
commit e81536b695
2 changed files with 42 additions and 30 deletions
+6 -2
View File
@@ -1547,8 +1547,9 @@ setup(void)
/* do not transform children into zombies when they terminate */
sigemptyset(&sa.sa_mask);
sa.sa_flags = SA_NOCLDSTOP | SA_NOCLDWAIT | SA_RESTART;
sa.sa_handler = SIG_IGN;
sa.sa_flags = SA_NOCLDSTOP | SA_RESTART;
/* IGN -> DFL for cppipe so that waitpid works */
sa.sa_handler = SIG_DFL;
sigaction(SIGCHLD, &sa, NULL);
/* clean up any zombies (inherited from .xinitrc etc) immediately */
@@ -1653,8 +1654,11 @@ spawn(const Arg *arg)
if (fork() == 0) {
if (dpy)
close(ConnectionNumber(dpy));
/* Child starts a new session */
setsid();
/* Don't inherit dwm's sigaction from setup */
sigemptyset(&sa.sa_mask);
sa.sa_flags = 0;
sa.sa_handler = SIG_DFL;