summaryrefslogtreecommitdiffstats
path: root/cpukit/posix
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-02-17 08:05:37 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-02-20 15:18:48 +0100
commitfea848bbbc8b63204677765cdcf8f5957e0ccf86 (patch)
tree76889a28a19ad7e90283c445f57b9d620e2963a1 /cpukit/posix
parentvalidation: Add signal manager tests (diff)
downloadrtems-fea848bbbc8b63204677765cdcf8f5957e0ccf86.tar.bz2
score: Change thread action locking
Require that the corresponding lock is acquired before the action handler returns. This helps to avoid recursion in the signal processing. Update #4244.
Diffstat (limited to 'cpukit/posix')
-rw-r--r--cpukit/posix/src/psignalunblockthread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/posix/src/psignalunblockthread.c b/cpukit/posix/src/psignalunblockthread.c
index 80a0f33a09..63ed823ab3 100644
--- a/cpukit/posix/src/psignalunblockthread.c
+++ b/cpukit/posix/src/psignalunblockthread.c
@@ -159,6 +159,8 @@ static void _POSIX_signals_Action_handler(
}
executing->Wait.return_code = hold_errno;
+
+ _Thread_State_acquire( executing, lock_context );
}
static bool _POSIX_signals_Unblock_thread_done(