mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 14:08:06 +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);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((exited=waitpid(-1, &status, 0)) < 0)
|
do {
|
||||||
{
|
if ((exited=waitpid(-1, &status, 0)) < 0)
|
||||||
wsyserror(_("Error during monitoring of Window Maker process."));
|
{
|
||||||
break;
|
wsyserror(_("Error during monitoring of Window Maker process."));
|
||||||
}
|
break;
|
||||||
|
}
|
||||||
if (exited != pid)
|
} while (exited != pid);
|
||||||
continue;
|
|
||||||
|
|
||||||
child_argv[argc]= "--for-real-";
|
child_argv[argc]= "--for-real-";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user