Closed pthom closed 4 years ago
Hi,
Here is a PR that proposes a potential fix for the issue https://github.com/sheredom/subprocess.h/issues/17 I had to fight against the optimizer, so that I get consistent failure in optimized build, so the repro code looks like this: https://github.com/pthom/subprocess.h/blob/fix_exit/test/process_fail_divzero.c
The only guarantee the code can make is that if the child process encounters an unhandled exception, the return code will always be filled with a non zero value.
CI build here:
Hi,
Here is a PR that proposes a potential fix for the issue https://github.com/sheredom/subprocess.h/issues/17 I had to fight against the optimizer, so that I get consistent failure in optimized build, so the repro code looks like this: https://github.com/pthom/subprocess.h/blob/fix_exit/test/process_fail_divzero.c
The only guarantee the code can make is that if the child process encounters an unhandled exception, the return code will always be filled with a non zero value.
CI build here: