px4_work_queue: sem_wait add loop as the wait may be interrupted by a signal

This commit is contained in:
Daniel Agar authored and Beat Küng committed 2020-04-06 10:30:35 +02:00
1 parent 9404b19906
commit 1d164c0dbd
2 files changed
+4 -2

No files matched your search

@@ -149,7 +149,8 @@ void
WorkQueue::Run()
{
while (!should_exit()) {
px4_sem_wait(&_process_lock);
// loop as the wait may be interrupted by a signal
do {} while (px4_sem_wait(&_process_lock) != 0);
work_lock();