From b5a5a8f384eab4320c365a30dbac99ca3d8a062c Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 18 Apr 2003 06:07:41 +0000 Subject: [PATCH] don't wait(), the glib function does that for us woot. --- openbox/openbox.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/openbox/openbox.c b/openbox/openbox.c index 9dd50985..1f5ded49 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -30,10 +30,6 @@ #ifdef HAVE_STDLIB_H # include #endif -#ifdef HAVE_SYS_WAIT_H -# include -# include -#endif #ifdef HAVE_LOCALE_H # include #endif @@ -94,10 +90,6 @@ int main(int argc, char **argv) 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); @@ -264,10 +256,6 @@ void signal_handler(const ObEvent *e, void *data) ob_shutdown = ob_restart = TRUE; break; - case SIGCHLD: - wait(NULL); - break; - case SIGHUP: case SIGINT: case SIGTERM: -- 2.39.2