freebsd / atf

Libraries to write tests in C, C++ and shell
Other
133 stars 45 forks source link

no way to wait for a process that exits on signal #42

Open jmgurney opened 5 years ago

jmgurney commented 5 years ago

If you fork a process that will exit on a signal, there is no helper function to allow you to check which signal the process exited w/. The _wait function will check if the child exited normally.

See attached test case. waitsig_test.c.log