Searched refs:forkCtx (Results 1 - 7 of 7) sorted by relevance
/base/startup/appspawn/standard/ |
H A D | appspawn_appmgr.c | 286 property->forkCtx.watcherHandle = NULL; in CreateAppSpawningCtx() 287 property->forkCtx.pidFdWatcherHandle = NULL; in CreateAppSpawningCtx() 288 property->forkCtx.coldRunPath = NULL; in CreateAppSpawningCtx() 289 property->forkCtx.timer = NULL; in CreateAppSpawningCtx() 290 property->forkCtx.fd[0] = -1; in CreateAppSpawningCtx() 291 property->forkCtx.fd[1] = -1; in CreateAppSpawningCtx() 293 property->forkCtx.childMsg = NULL; in CreateAppSpawningCtx() 312 if (property->forkCtx.timer) { in DeleteAppSpawningCtx() 313 LE_StopTimer(LE_GetDefaultLoop(), property->forkCtx.timer); in DeleteAppSpawningCtx() 314 property->forkCtx in DeleteAppSpawningCtx() [all...] |
H A D | appspawn_service.c | 530 property->forkCtx.msgSize = memSize; in WriteMsgToChild() 531 property->forkCtx.childMsg = buffer; in WriteMsgToChild() 538 if (pipe(property->forkCtx.fd) == -1) { in InitForkContext() 542 int option = fcntl(property->forkCtx.fd[0], F_GETFD); in InitForkContext() 544 (void)fcntl(property->forkCtx.fd[0], F_SETFD, (unsigned int)option | O_NONBLOCK); in InitForkContext() 612 LE_STATUS status = LE_StartWatcher(LE_GetDefaultLoop(), &property->forkCtx.pidFdWatcherHandle, &watchInfo, appPid); in WatchChildProcessFd() 635 watchInfo.fd = property->forkCtx.fd[0]; in AddChildWatcher() 639 LE_STATUS status = LE_StartWatcher(LE_GetDefaultLoop(), &property->forkCtx.watcherHandle, &watchInfo, property); in AddChildWatcher() 642 status = LE_CreateTimer(LE_GetDefaultLoop(), &property->forkCtx.timer, WaitChildTimeout, property); in AddChildWatcher() 644 status = LE_StartTimer(LE_GetDefaultLoop(), property->forkCtx in AddChildWatcher() [all...] |
H A D | appspawn_manager.h | 81 AppSpawnForkCtx forkCtx; member
|
/base/startup/appspawn/modules/asan/ |
H A D | asan_detector.c | 125 if (property->forkCtx.coldRunPath) { in AsanSpawnGetSpawningFlag() 126 free(property->forkCtx.coldRunPath); in AsanSpawnGetSpawningFlag() 129 property->forkCtx.coldRunPath = strdup("/system/asan/bin/appspawn"); in AsanSpawnGetSpawningFlag() 131 property->forkCtx.coldRunPath = strdup("/system/asan/bin/nativespawn"); in AsanSpawnGetSpawningFlag() 133 property->forkCtx.coldRunPath = strdup("/system/asan/bin/cjappspawn"); in AsanSpawnGetSpawningFlag() 135 if (property->forkCtx.coldRunPath == NULL) { in AsanSpawnGetSpawningFlag()
|
/base/startup/appspawn/test/unittest/app_spawn_standard_test/ |
H A D | app_spawn_cold_run_test.cpp | 269 appProperty.forkCtx.fd[0] = 0; in HWTEST_F() 270 appProperty.forkCtx.fd[1] = 1; in HWTEST_F() 271 appProperty.forkCtx.msgSize = 20; in HWTEST_F()
|
H A D | app_spawn_child_test.cpp | 755 argStr += std::to_string(property->forkCtx.msgSize); in GetColdRunArgs()
|
/base/startup/appspawn/modules/common/ |
H A D | appspawn_common.c | 186 close(ctx->forkCtx.fd[0]); in ClearEnvironment() 187 ctx->forkCtx.fd[0] = -1; in ClearEnvironment()
|
Completed in 9 milliseconds