mirror of
https://github.com/miracle-wm-org/miracle-wm.git
synced 2024-11-29 16:39:40 +03:00
feature: no longer restarting commands that exit with 127 (#204)
This commit is contained in:
parent
2ce71cc28e
commit
d402e4829a
@ -77,7 +77,18 @@ void AutoRestartingLauncher::reap()
|
||||
}
|
||||
|
||||
if (cmd.restart_on_death)
|
||||
launch(cmd);
|
||||
{
|
||||
if (status != 127)
|
||||
{
|
||||
mir::log_error(
|
||||
"Process exited with status 127, meaning it could not be found. %s will not be restarted",
|
||||
cmd.command.c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
launch(cmd);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user