MCPcopy Create free account
hub / github.com/chen3feng/toft / UpdateExitStatus

Method UpdateExitStatus

system/process/sub_process.cpp:372–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370}
371
372bool 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
389int SubProcess::ExitCode() const
390{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected