summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-18 06:07:41 +0000
committerDana Jansens <danakj@orodu.net>2003-04-18 06:07:41 +0000
commitb5a5a8f384eab4320c365a30dbac99ca3d8a062c (patch)
treeb7fc1feb7d868e4f0061c44473c74d3dce2db37a
parentc4fb053f2fe774d3cbf17b10d761666b3c85a60f (diff)
don't wait(), the glib function does that for us woot.
-rw-r--r--openbox/openbox.c12
1 files changed, 0 insertions, 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 <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 @@ 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: