commit | bf0f6d0b5a30babf1531b392f640454e6546566e | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Wed Apr 04 12:57:40 2018 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Apr 04 12:57:40 2018 +0000 |
tree | 19a43e95d30d81634330cd8cb9c6138ca427c3a6 | |
parent | d24dc1b354ea39e668f35062ccf35f7669913f70 [diff] | |
parent | a1bc826c375c25a4b385fa724c580838635fa262 [diff] |
Merge "Fix race in spawn.signal_stress test"
diff --git a/tests/spawn_test.cpp b/tests/spawn_test.cpp index 86175f9..7e45ec3 100644 --- a/tests/spawn_test.cpp +++ b/tests/spawn_test.cpp
@@ -433,12 +433,12 @@ static pid_t parent = getpid(); setpgid(0, 0); + signal(SIGRTMIN, SIG_IGN); pid_t pid = fork(); ASSERT_NE(-1, pid); if (pid == 0) { - signal(SIGRTMIN, SIG_IGN); for (size_t i = 0; i < 1024; ++i) { kill(0, SIGRTMIN); usleep(10);