[process] distinguish normal exit from termination by signal - complete
17 Dec
2018
17 Dec
'18
2:43 p.m.
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
2158
Age (days ago)
2158
Last active (days ago)
0 comments
1 participants
participants (1)
-
Oliver Kowalke