1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-22 04:01:57 +03:00
Files
glibc/malloc
Florian Weimer e2cd73a2cc tst-mallocfork2: Fix race condition, use fewer resources
The first SIGUSR1 signal could arrive when sigusr1_sender_pid
was still 0.  As a result, kill would send SIGSTOP to the
entire process group.  This would cause the test to hang before
printing any output.

This commit also adds a sched_yield to the signal source, so that
it does not flood the parent process with signals it has never a
chance to handle.

Even with these changes, tst-mallocfork2 still fails reliably
after the fix in commit commit 56290d6e76
(Increase fork signal safety for single-threaded processes) is
backed out.
2016-05-13 20:43:14 +02:00
..
1999-10-04 22:59:43 +00:00
2014-01-02 09:40:10 +01:00
2007-12-16 22:57:57 +00:00