Lines Matching defs:status
142 static inline void DumpStatus(const char *appName, pid_t pid, int status)
144 if (WIFSIGNALED(status)) {
145 APPSPAWN_LOGW("%{public}s with pid %{public}d exit with signal:%{public}d", appName, pid, WTERMSIG(status));
147 if (WIFEXITED(status)) {
148 APPSPAWN_LOGW("%{public}s with pid %{public}d exit with code:%{public}d", appName, pid, WEXITSTATUS(status));
152 static void HandleDiedPid(pid_t pid, uid_t uid, int status)
162 DumpStatus("unknown", pid, status);
166 appInfo->exitStatus = status;
168 DumpStatus(appInfo->name, pid, status);
189 int status;
190 while ((pid = waitpid(-1, &status, WNOHANG)) > 0) {
191 APPSPAWN_CHECK(WIFSIGNALED(status) || WIFEXITED(status), return,
192 "ProcessSignal with wrong status:%{public}d", status);
193 HandleDiedPid(pid, siginfo->ssi_uid, status);
612 LE_STATUS status = LE_StartWatcher(LE_GetDefaultLoop(), &property->forkCtx.pidFdWatcherHandle, &watchInfo, appPid);
613 if (status != LE_SUCCESS) {
639 LE_STATUS status = LE_StartWatcher(LE_GetDefaultLoop(), &property->forkCtx.watcherHandle, &watchInfo, property);
640 APPSPAWN_CHECK(status == LE_SUCCESS,
642 status = LE_CreateTimer(LE_GetDefaultLoop(), &property->forkCtx.timer, WaitChildTimeout, property);
643 if (status == LE_SUCCESS) {
644 status = LE_StartTimer(LE_GetDefaultLoop(), property->forkCtx.timer, timeout * 1000, 0); // 1000 1s
646 if (status != LE_SUCCESS) {
1239 LE_STATUS status = LE_CreateSignalTask(LE_GetDefaultLoop(), &appSpawnContent->sigHandler, ProcessSignal);
1240 if (status == 0) {
1631 case MSG_GET_RENDER_TERMINATION_STATUS: { // get status