apply latest suckless commit

This commit is contained in:
speedie 2023-04-11 22:03:04 +02:00
parent 329e8066ea
commit 0e94989547

View file

@ -5384,6 +5384,8 @@ sortscreens(XineramaScreenInfo *screens, int n)
void
spawn(const Arg *arg)
{
struct sigaction sa;
if (fork() == 0) {
if (dpy)
close(ConnectionNumber(dpy));
@ -5415,6 +5417,12 @@ spawn(const Arg *arg)
#endif
setsid();
sigemptyset(&sa.sa_mask);
sa.sa_flags = 0;
sa.sa_handler = SIG_DFL;
sigaction(SIGCHLD, &sa, NULL);
execvp(((char **)arg->v)[0], (char **)arg->v);
die("speedwm: execvp '%s' failed:", ((char **)arg->v)[0]);