1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-22 05:48:01 +01:00

fixed a restart bug when child processes exit

This commit is contained in:
kojima
2004-10-18 00:22:22 +00:00
parent bc6aeab722
commit 28050dab72

View File

@@ -118,14 +118,13 @@ int MonitorLoop(int argc, char **argv)
exit(1);
}
if ((exited=waitpid(-1, &status, 0)) < 0)
{
wsyserror(_("Error during monitoring of Window Maker process."));
break;
}
if (exited != pid)
continue;
do {
if ((exited=waitpid(-1, &status, 0)) < 0)
{
wsyserror(_("Error during monitoring of Window Maker process."));
break;
}
} while (exited != pid);
child_argv[argc]= "--for-real-";