Home
last modified time | relevance | path

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

/external/perfetto/src/base/
Dsubprocess_posix.cc252 int pid_stat = -1; in Start() local
254 int wait_res = PERFETTO_EINTR(wait4(pid, &pid_stat, 0, &usg)); in Start()
269 write(exit_status_pipe_wr, &pid_stat, sizeof(pid_stat)))); in Start()
354 int pid_stat = -1; in TryReadExitStatus() local
356 read(*s_->exit_status_pipe.rd, &pid_stat, sizeof(pid_stat))); in TryReadExitStatus()
361 PERFETTO_CHECK(rsize == sizeof(pid_stat)); in TryReadExitStatus()
369 if (WIFEXITED(pid_stat)) { in TryReadExitStatus()
370 s_->returncode = WEXITSTATUS(pid_stat); in TryReadExitStatus()
371 } else if (WIFSIGNALED(pid_stat)) { in TryReadExitStatus()
372 s_->returncode = 128 + WTERMSIG(pid_stat); // Follow bash convention. in TryReadExitStatus()
[all …]