diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-02-20 14:37:04 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-02-27 13:43:57 -0300 |
commit | 5c8aa3849a58f2ef1d12ffb638a98578fbf99172 (patch) | |
tree | 72f8b0b886ba2323bc8e8bb83ff439c140f25181 /io | |
parent | 758599bc9dcc5764e862bd9e1613c5d1e6efc5d3 (diff) | |
download | glibc-5c8aa3849a58f2ef1d12ffb638a98578fbf99172.tar glibc-5c8aa3849a58f2ef1d12ffb638a98578fbf99172.tar.gz glibc-5c8aa3849a58f2ef1d12ffb638a98578fbf99172.tar.bz2 glibc-5c8aa3849a58f2ef1d12ffb638a98578fbf99172.zip |
malloc/tst-mallocfork2: Kill lingering process for unexpected failures
If the test fails due some unexpected failure after the children
creation, either in the signal handler by calling abort or in the main
loop; the created children might not be killed properly.
This patches fixes it by:
* Avoid aborting in the signal handler by setting a flag that
an error has occured and add a check in the main loop.
* Add a atexit handler to handle kill child processes.
Checked on x86_64-linux-gnu.
Diffstat (limited to 'io')
0 files changed, 0 insertions, 0 deletions