don't wait(), the glib function does that for us woot.

This commit is contained in:
Dana Jansens 2003-04-18 06:07:41 +00:00
parent c4fb053f2f
commit b5a5a8f384

View file

@ -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: