mirror of
https://gitee.com/openharmony/startup_appspawn
synced 2024-11-27 01:00:38 +00:00
prefork
Signed-off-by: yanghao <yanghao236@huawei.com> Change-Id: I865456664fbcf6e592aafafb9874b464c3529ac9
This commit is contained in:
parent
148a7778e3
commit
7e234aa444
@ -761,8 +761,12 @@ static bool IsSupportPrefork(AppSpawnContent *content, AppSpawnClient *client)
|
||||
}
|
||||
}
|
||||
AppSpawningCtx *property = (AppSpawningCtx *)client;
|
||||
bool isAsan = CheckAppMsgFlagsSet(property, APP_FLAGS_UBSAN_ENABLED)
|
||||
|| CheckAppMsgFlagsSet(property, APP_FLAGS_ASANENABLED)
|
||||
|| CheckAppMsgFlagsSet(property, APP_FLAGS_TSAN_ENABLED)
|
||||
|| CheckAppMsgFlagsSet(property, APP_FLAGS_HWASAN_ENABLED);
|
||||
if (content->mode == MODE_FOR_APP_SPAWN && !(client->flags & APP_COLD_START) && content->isPrefork
|
||||
&& !CheckAppMsgFlagsSet(property, APP_FLAGS_CHILDPROCESS)) {
|
||||
&& !CheckAppMsgFlagsSet(property, APP_FLAGS_CHILDPROCESS) && !isAsan) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user