| 370 | } |
| 371 | |
| 372 | bool SubProcess::UpdateExitStatus(int status) |
| 373 | { |
| 374 | if (WIFSIGNALED(status)) { |
| 375 | m_pid = -m_pid; |
| 376 | m_exit_code = -WTERMSIG(status); |
| 377 | return true; |
| 378 | } |
| 379 | |
| 380 | if (WIFEXITED(status)) { |
| 381 | m_pid = -m_pid; |
| 382 | m_exit_code = WEXITSTATUS(status); |
| 383 | return true; |
| 384 | } |
| 385 | |
| 386 | return false; |
| 387 | } |
| 388 | |
| 389 | int SubProcess::ExitCode() const |
| 390 | { |
nothing calls this directly
no outgoing calls
no test coverage detected