Home
last modified time | relevance | path

Searched refs:forkCtx (Results 1 - 7 of 7) sorted by relevance

/base/startup/appspawn/standard/
H A Dappspawn_appmgr.c286 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 Dappspawn_service.c530 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 Dappspawn_manager.h81 AppSpawnForkCtx forkCtx; member
/base/startup/appspawn/modules/asan/
H A Dasan_detector.c125 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 Dapp_spawn_cold_run_test.cpp269 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 Dapp_spawn_child_test.cpp755 argStr += std::to_string(property->forkCtx.msgSize); in GetColdRunArgs()
/base/startup/appspawn/modules/common/
H A Dappspawn_common.c186 close(ctx->forkCtx.fd[0]); in ClearEnvironment()
187 ctx->forkCtx.fd[0] = -1; in ClearEnvironment()

Completed in 9 milliseconds