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
|
||||
handlesig(int signo)
|
||||
{
|
||||
#ifdef XWAYLAND
|
||||
if (signo == SIGINT || signo == SIGTERM)
|
||||
quit(NULL);
|
||||
#else
|
||||
if (signo == SIGCHLD)
|
||||
while (waitpid(-1, NULL, WNOHANG) > 0);
|
||||
else if (signo == SIGINT || signo == SIGTERM)
|
||||
quit(NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue