Home
last modified time | relevance | path

Searched refs:pid_stat (Results 1 – 1 of 1) sorted by relevance

/external/perfetto/src/base/
Dsubprocess.cc246 int pid_stat = -1; in Start() local
247 int wait_res = PERFETTO_EINTR(waitpid(pid, &pid_stat, 0)); in Start()
250 write(exit_status_pipe_wr, &pid_stat, sizeof(pid_stat)))); in Start()
348 int pid_stat = -1; in TryReadExitStatus() local
350 PERFETTO_EINTR(read(*exit_status_pipe_.rd, &pid_stat, sizeof(pid_stat))); in TryReadExitStatus()
355 PERFETTO_CHECK(rsize == sizeof(pid_stat)); in TryReadExitStatus()
362 if (WIFEXITED(pid_stat)) { in TryReadExitStatus()
363 returncode_ = WEXITSTATUS(pid_stat); in TryReadExitStatus()
365 } else if (WIFSIGNALED(pid_stat)) { in TryReadExitStatus()
366 returncode_ = 128 + WTERMSIG(pid_stat); // Follow bash convention. in TryReadExitStatus()
[all …]