]> begriffs open source - freertos/commit
Add instruction to suppress SIGUSR1 in Posix with LLDB debugger (#1245)
authorBhoomika R S <bhoomrs@amazon.com>
Wed, 12 Feb 2025 09:27:03 +0000 (14:57 +0530)
committerGitHub <noreply@github.com>
Wed, 12 Feb 2025 09:27:03 +0000 (14:57 +0530)
commit51a1598e4e0281de8b8d54467747af460478eadc
tree4def7ede5de61f59f8f9bff2a04618e068475ade
parentfbaeba352ec22a088b7f88a67430f7c03409e81a
Add instruction to suppress SIGUSR1 in Posix with LLDB debugger (#1245)

While using the macOS default LLDB debugger, a call to vTaskEndScheduler results in an unhandled SIGUSR1 (aka SIGRESUME) when restoring the scheduler thread's signals with pthread_sigmask. This crashes the program.

Added instructions in portable/ThirdParty/GCC/Posix/port.c to suppress SIGUSR1 to prevent LLDB debugger interference when exiting xPortStartScheduler

Thanks to: @johnboiles for pointing it out in #1224
portable/ThirdParty/GCC/Posix/port.c