diff options
author | Ryan Prichard <rprichard@google.com> | 2018-04-03 20:46:11 -0700 |
---|---|---|
committer | Ryan Prichard <rprichard@google.com> | 2018-04-04 16:10:57 -0700 |
commit | ef53e759cc35265df2d5f4f58daab53ac119b56e (patch) | |
tree | 80f699fa6a997db2403055e311bf3e35ceeb9ffa /libc/malloc_hooks/malloc_hooks.cpp | |
parent | 0044cd188e738c863da4e9cb44687623436890d7 (diff) |
Fix race in spawn.signal_stress test
The default behavior for a real-time signal is to terminate the process.
If the child we fork sends a SIGRTMIN signal before we've set up the
ScopedSignalHandler for it, then the parent is terminated.
Test: adb shell /data/nativetest64/bionic-unit-tests-static/bionic-unit-tests-static --gtest_filter=spawn.signal_stress --gtest_repeat=1000
Bug: b/77554047
Change-Id: Ib44cbea8ccf506644405d8f426d9ad24e77cfa33
(cherry picked from commit a1bc826c375c25a4b385fa724c580838635fa262)
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions