]> Dogcows Code - chaz/openbox/commitdiff
don't wait(), the glib function does that for us woot.
authorDana Jansens <danakj@orodu.net>
Fri, 18 Apr 2003 06:07:41 +0000 (06:07 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 18 Apr 2003 06:07:41 +0000 (06:07 +0000)
openbox/openbox.c

index 9dd50985daa0b138d4fcc027992ffc262e871b3c..1f5ded49a184954b9184114cb87a5957bc78fc70 100644 (file)
 #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:
This page took 0.024173 seconds and 4 git commands to generate.