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
..
arena.c malloc: Add missing internal_function attributes on function definitions 2016-04-14 12:54:22 +02:00
Depend
hooks.c malloc: Rewrite dumped heap for compatibility in __malloc_set_state 2016-05-13 14:16:39 +02:00
Makefile Increase fork signal safety for single-threaded processes [BZ #19703] 2016-05-12 15:26:55 +02:00
malloc-internal.h malloc: Adjust header file guard in malloc-internal.h 2016-05-04 15:27:15 +02:00
malloc.c malloc: Rewrite dumped heap for compatibility in __malloc_set_state 2016-05-13 14:16:39 +02:00
malloc.h malloc: Remove max_total_mem member form struct malloc_par 2016-02-19 17:07:04 +01:00
mallocbug.c
mcheck-init.c
mcheck.c
mcheck.h
memusage.c
memusage.sh Update copyright dates not handled by scripts/update-copyrights. 2016-01-04 16:26:30 +00:00
memusagestat.c Update copyright dates not handled by scripts/update-copyrights. 2016-01-04 16:26:30 +00:00
morecore.c
mtrace.c
mtrace.pl Update copyright dates not handled by scripts/update-copyrights. 2016-01-04 16:26:30 +00:00
obstack.c
obstack.h
scratch_buffer_grow_preserve.c
scratch_buffer_grow.c
scratch_buffer_set_array_size.c scratch_buffer_set_array_size: Include <limits.h> 2016-04-07 13:46:28 +02:00
set-freeres.c
thread-freeres.c
tst-calloc.c
tst-malloc-backtrace.c
tst-malloc-fork-deadlock.c malloc: Run fork handler as late as possible [BZ #19431] 2016-04-14 09:17:02 +02:00
tst-malloc-thread-exit.c tst-malloc-thread-exit: Use fewer system resources 2016-02-19 14:12:56 +01:00
tst-malloc-thread-fail.c
tst-malloc-usable.c
tst-malloc.c
tst-mallocfork2.c tst-mallocfork2: Fix race condition, use fewer resources 2016-05-13 20:43:14 +02:00
tst-mallocfork.c
tst-mallocstate.c
tst-mallopt.c
tst-mcheck.c
tst-memalign.c
tst-mtrace.c
tst-mtrace.sh Make shebang interpreter directives consistent 2016-01-07 04:03:21 -05:00
tst-obstack.c
tst-posix_memalign.c
tst-pvalloc.c
tst-realloc.c
tst-scratch_buffer.c
tst-trim1.c
tst-valloc.c
Versions