mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-29 05:40:19 -04:00
fix "waitpid for Xwayland fork failed: No child processes"
This commit is contained in:
parent
aa69ed81b5
commit
b76df834f5
1 changed files with 5 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue