InitSystem (Haiku): set pid=0 if fails to detect init pid

This commit is contained in:
李通洲
2025-03-31 23:39:25 +08:00
parent 71b05d2594
commit 07c61f70d9
+3 -1
View File
@@ -16,6 +16,7 @@ const char* ffDetectInitSystem(FFInitSystemResult* result)
ffStrbufSetStatic(&result->exe, path);
ffStrbufSetStatic(&result->name, "launch_daemon");
result->pid = 0;
team_info teamInfo;
int32 cookie = 0;
@@ -28,7 +29,8 @@ const char* ffDetectInitSystem(FFInitSystemResult* result)
}
}
ffGetFileVersion(path, &result->version);
if (instance.config.general.detectVersion)
ffGetFileVersion(path, &result->version);
return NULL;
}