vene signal changes in dwm and status bar upgrades
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user