Fix check for init process
PiperOrigin-RevId: 532473530 Change-Id: Ia5f84073e372a63f70425d0fa68ac178019e80bepull/171/head
parent
340ca4f37a
commit
7ba0a794d1
|
@ -206,7 +206,7 @@ void MonitorBase::Launch() {
|
|||
|
||||
process_ = *std::move(process);
|
||||
|
||||
if (process_.main_pid <= 0 || (should_have_init && process_.main_pid <= 0)) {
|
||||
if (process_.main_pid <= 0 || (should_have_init && process_.init_pid <= 0)) {
|
||||
SetExitStatusCode(Result::SETUP_ERROR, Result::FAILED_SUBPROCESS);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue