From a3e5b4feeb54cb92657ec2bc6d9be1fcef9e8575 Mon Sep 17 00:00:00 2001 From: "Paul E. Murphy" Date: Mon, 11 Jan 2016 17:24:04 -0500 Subject: Fix race in tst-mqueue5 The check is done on line 117 by a thread spawned from do_child(), forked from do_test(). This test generates a signal in the forked process. Either thread may handle the signal, and on ppc, it happens to be done on do_child, on the thread which is not doing the check on line 117. This exposes a race condition whereby the test incorrectly fails as the signal is caught during or after the check. This is mitigated by ensuring the signal is blocked in the child thread while thread is running. --- ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 7f2a19d50a..fb5cd0e024 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-01-15 Paul E. Murphy + + * rt/tst-mqueue5.c (thr): Cleanup misleading comment. + (do_child): Mask SIGRTMIN while thr is running. + 2016-01-15 Martin Sebor [BZ #19432] -- cgit v1.2.3