#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
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);
ob_shutdown = ob_restart = TRUE;
break;
- case SIGCHLD:
- wait(NULL);
- break;
-
case SIGHUP:
case SIGINT:
case SIGTERM: