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:
@@ -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-";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user