Propagate WTERMSIG exit code from child process on exit
I’m writing a wrapper command that invokes a child process, waits for it to exit, and propagates its exit code. Simple enough. I want to propagate the exit status of the child process to my own process’s exit code even if the child exited with a signal. If WIFSIGNALED(cmdret) is true for some int cmdret… Read More Propagate WTERMSIG exit code from child process on exit