all repos — fluxbox @ 51fa41554e87a50d1ded65382a645c9c47f2194f

custom fork of the fluxbox windowmanager

call waitpid until no more children to wait for (thanks Devin/dlab).
simonb simonb
commit

51fa41554e87a50d1ded65382a645c9c47f2194f

parent

4c12086c1c126347f92c247901fb0ab3231d237c

2 files changed, 6 insertions(+), 1 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,5 +1,9 @@

(Format: Year/Month/Day) Changes for 1.0rc2: +*06/07/03: + * call waitpid() on SIGCHLD until no more children (thanks Devin/dlab) + sf.net #1514843, #1447782 - fluxbox leaves zombies + fluxbox.cc *06/07/02: * Updated documentation (Mark) *06/06/29:
M src/fluxbox.ccsrc/fluxbox.cc

@@ -1135,7 +1135,8 @@ static int re_enter = 0;

switch (signum) { case SIGCHLD: // we don't want the child process to kill us - waitpid(-1, 0, WNOHANG | WUNTRACED); + // more than one process may have terminated + while (waitpid(-1, 0, WNOHANG | WUNTRACED) > 0); break; case SIGHUP: restart();