mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 13:01:57 -04:00
Add #if __APPLE__ to lldb workaround
This commit is contained in:
parent
a304184654
commit
4bb54a3cdc
21
portable/ThirdParty/GCC/Posix/port.c
vendored
21
portable/ThirdParty/GCC/Posix/port.c
vendored
|
@ -288,15 +288,18 @@ BaseType_t xPortStartScheduler( void )
|
|||
{
|
||||
sigwait( &xSignals, &iSignal );
|
||||
|
||||
/* For some reason, sigwait() doesn't always clear the signal the first time.
|
||||
* Clear it again if it's still pending.
|
||||
*/
|
||||
sigset_t set;
|
||||
sigpending( &set );
|
||||
if( sigismember( &set, SIG_RESUME ) )
|
||||
{
|
||||
sigwait( &xSignals, &iSignal );
|
||||
}
|
||||
#if __APPLE__
|
||||
/* For some reason, on macOS when running in LLDB, sigwait() doesn't
|
||||
* always clear the signal the first time. Clear it again if it's still
|
||||
* pending.
|
||||
*/
|
||||
sigset_t set;
|
||||
sigpending( &set );
|
||||
if( sigismember( &set, SIG_RESUME ) )
|
||||
{
|
||||
sigwait( &xSignals, &iSignal );
|
||||
}
|
||||
#endif /* __APPLE__ */
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue