all repos — openbox @ b5a5a8f384eab4320c365a30dbac99ca3d8a062c

openbox fork - make it a bit more like ryudo

don't wait(), the glib function does that for us woot.
Dana Jansens danakj@orodu.net
commit

b5a5a8f384eab4320c365a30dbac99ca3d8a062c

parent

c4fb053f2fe774d3cbf17b10d761666b3c85a60f

1 files changed, 0 insertions(+), 12 deletions(-)

jump to
M openbox/openbox.copenbox/openbox.c

@@ -30,10 +30,6 @@ #endif

#ifdef HAVE_STDLIB_H # include <stdlib.h> #endif -#ifdef HAVE_SYS_WAIT_H -# include <sys/types.h> -# include <sys/wait.h> -#endif #ifdef HAVE_LOCALE_H # include <locale.h> #endif

@@ -94,10 +90,6 @@ sigaction(SIGFPE, &action, (struct sigaction *) NULL);

sigaction(SIGTERM, &action, (struct sigaction *) NULL); sigaction(SIGINT, &action, (struct sigaction *) NULL); sigaction(SIGHUP, &action, (struct sigaction *) NULL); - sigaction(SIGCHLD, &action, (struct sigaction *) NULL); - - /* anything that died while we were restarting won't give us a SIGCHLD */ - while (waitpid(-1, NULL, WNOHANG) > 0); /* create the ~/.openbox dir */ path = g_build_filename(g_get_home_dir(), ".openbox", NULL);

@@ -262,10 +254,6 @@ switch (s) {

case SIGUSR1: g_message("Caught SIGUSR1 signal. Restarting."); ob_shutdown = ob_restart = TRUE; - break; - - case SIGCHLD: - wait(NULL); break; case SIGHUP: