Lines Matching refs:forkCtx

530     property->forkCtx.msgSize = memSize;
531 property->forkCtx.childMsg = buffer;
538 if (pipe(property->forkCtx.fd) == -1) {
542 int option = fcntl(property->forkCtx.fd[0], F_GETFD);
544 (void)fcntl(property->forkCtx.fd[0], F_SETFD, (unsigned int)option | O_NONBLOCK);
612 LE_STATUS status = LE_StartWatcher(LE_GetDefaultLoop(), &property->forkCtx.pidFdWatcherHandle, &watchInfo, appPid);
635 watchInfo.fd = property->forkCtx.fd[0];
639 LE_STATUS status = LE_StartWatcher(LE_GetDefaultLoop(), &property->forkCtx.watcherHandle, &watchInfo, property);
642 status = LE_CreateTimer(LE_GetDefaultLoop(), &property->forkCtx.timer, WaitChildTimeout, property);
644 status = LE_StartTimer(LE_GetDefaultLoop(), property->forkCtx.timer, timeout * 1000, 0); // 1000 1s
647 if (property->forkCtx.timer != NULL) {
648 LE_StopTimer(LE_GetDefaultLoop(), property->forkCtx.timer);
650 property->forkCtx.timer = NULL;
651 LE_RemoveWatcher(LE_GetDefaultLoop(), property->forkCtx.watcherHandle);
652 property->forkCtx.watcherHandle = NULL;
705 property->forkCtx.childMsg = (char *)buffer;
706 property->forkCtx.msgSize = MAX_MEM_SIZE;
774 (void)close(property->forkCtx.fd[0]);
775 (void)close(property->forkCtx.fd[1]);
788 property->forkCtx.fd[0] = content->preforkFd[0];
789 property->forkCtx.fd[1] = content->preforkFd[1];
823 property->forkCtx.fd[0] = content->preforkFd[0];
824 property->forkCtx.fd[1] = content->preforkFd[1];
826 int option = fcntl(property->forkCtx.fd[0], F_GETFD);
828 ret = fcntl(property->forkCtx.fd[0], F_SETFD, (unsigned int)option | O_NONBLOCK);
996 property->forkCtx.watcherHandle = NULL; // delete watcher
1048 int fd = property->forkCtx.fd[1];
1052 property->forkCtx.fd[1] = -1;
1113 char *path = property->forkCtx.coldRunPath != NULL ? property->forkCtx.coldRunPath : "/system/bin/cjappspawn";
1115 char *path = property->forkCtx.coldRunPath != NULL ? property->forkCtx.coldRunPath : "/system/bin/nativespawn";
1117 char *path = property->forkCtx.coldRunPath != NULL ? property->forkCtx.coldRunPath : "/system/bin/appspawn";
1127 int len = sprintf_s(buffer[0], sizeof(buffer[0]), " %d ", property->forkCtx.fd[1]);
1131 len = sprintf_s(buffer[2], sizeof(buffer[2]), " %u ", property->forkCtx.msgSize); // 2 2 index for dest path
1157 property->forkCtx.fd[1] = atoi(argv[FD_VALUE_INDEX]);