Boost logo

Boost Users :

Subject: [Boost-users] [process] distinguish normal exit from termination by signal - complete
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2018-12-17 14:43:33


Hello,
I'm evaluating boost.process. It seams to me that it is impossible to
distinguish a normal exit from a termination by a signal (for instance
SIGBUS etc.).
child::exit_code() calls eval_exit_status() that expands on POSIX to:

if (WIFEXITED(code)) {
   return WEXITSTATUS(code);
} else if (WIFSIGNALED(code)) {
   return WTERMSIG(code);
} else {
   return code;
}

With the code above it is impossible if the returned exit_code is a
`exit-code` or the number of a signal.
Or do I miss something?

regards,
Oliver



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net