We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 963abe6 commit 1d20f0eCopy full SHA for 1d20f0e
portable/ThirdParty/GCC/Posix/port.c
@@ -148,7 +148,12 @@ portSTACK_TYPE * pxPortInitialiseStack( portSTACK_TYPE * pxTopOfStack,
148
thread->xDying = pdFALSE;
149
150
pthread_attr_init( &xThreadAttributes );
151
- pthread_attr_setstack( &xThreadAttributes, pxEndOfStack, ulStackSize );
+ iRet = pthread_attr_setstack( &xThreadAttributes, pxEndOfStack, ulStackSize );
152
+ if( iRet != 0 )
153
+ {
154
+ fprintf( stderr, "[WARN] pthread_attr_setstack failed with return value: %d. Default stack will be used.\n", iRet );
155
+ fprintf( stderr, "[WARN] Increase the stack size to PTHREAD_STACK_MIN.\n" );
156
+ }
157
158
thread->ev = event_create();
159
0 commit comments