feature: no longer restarting commands that exit with 127 (#204)

This commit is contained in:
Matthew Kosarek 2024-08-12 19:19:08 -04:00 committed by GitHub
parent 2ce71cc28e
commit d402e4829a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,8 +77,19 @@ void AutoRestartingLauncher::reap()
}
if (cmd.restart_on_death)
{
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;
}