fix null deref in sigchld() if Xwayland is disabled
This commit is contained in:
parent
30c24a53ad
commit
16a49e9955
1 changed files with 1 additions and 1 deletions
2
dwl.c
2
dwl.c
|
@ -2543,7 +2543,7 @@ sigchld(int unused)
|
|||
* XWayland process
|
||||
*/
|
||||
while (!waitid(P_ALL, 0, &in, WEXITED|WNOHANG|WNOWAIT) && in.si_pid
|
||||
&& in.si_pid != xwayland->server->pid)
|
||||
&& (!xwayland || in.si_pid != xwayland->server->pid))
|
||||
waitpid(in.si_pid, NULL, 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue