mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-30 11:34:14 +00:00
fix "waitpid for Xwayland fork failed: No child processes"
This commit is contained in:
parent
aa69ed81b5
commit
b76df834f5
5
dwl.c
5
dwl.c
@ -1554,10 +1554,15 @@ gpureset(struct wl_listener *listener, void *data)
|
|||||||
void
|
void
|
||||||
handlesig(int signo)
|
handlesig(int signo)
|
||||||
{
|
{
|
||||||
|
#ifdef XWAYLAND
|
||||||
|
if (signo == SIGINT || signo == SIGTERM)
|
||||||
|
quit(NULL);
|
||||||
|
#else
|
||||||
if (signo == SIGCHLD)
|
if (signo == SIGCHLD)
|
||||||
while (waitpid(-1, NULL, WNOHANG) > 0);
|
while (waitpid(-1, NULL, WNOHANG) > 0);
|
||||||
else if (signo == SIGINT || signo == SIGTERM)
|
else if (signo == SIGINT || signo == SIGTERM)
|
||||||
quit(NULL);
|
quit(NULL);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user