Added missing handling of return value

This commit is contained in:
Robert Osfield
2016-06-23 08:28:25 +01:00
parent f197dd22cd
commit 954f782807

View File

@@ -643,7 +643,7 @@ int Thread::start() {
if(pd->stackSize < PTHREAD_STACK_MIN)
pd->stackSize = PTHREAD_STACK_MIN;
#endif
pthread_attr_setstacksize( &thread_attr, pd->stackSize);
status = pthread_attr_setstacksize( &thread_attr, pd->stackSize);
if(status != 0)
{
return status;
@@ -654,7 +654,7 @@ int Thread::start() {
// Now get what we actually have...
//
size_t size;
pthread_attr_getstacksize( &thread_attr, &size);
status = pthread_attr_getstacksize( &thread_attr, &size);
if(status != 0)
{
return status;