better checking for pthread_create
This commit is contained in:
1 parent
533e99d33c
commit
33865495c9
1 file changed
+7
-3
@@ -409,9 +409,13 @@ epicsThreadId epicsThreadCreate(const char *name,
|
||||
status = pthread_create(&pthreadInfo->tid,&pthreadInfo->attr,
|
||||
start_routine,pthreadInfo);
|
||||
}
|
||||
checkStatus(status,"pthread_create");
|
||||
if(status) return 0;
|
||||
pthread_sigmask(SIG_SETMASK,&oldSig,NULL);
|
||||
checkStatusOnce(status,"pthread_create");
|
||||
if(status) {
|
||||
free_threadInfo(pthreadInfo);
|
||||
return 0;
|
||||
}
|
||||
status = pthread_sigmask(SIG_SETMASK,&oldSig,NULL);
|
||||
checkStatusOnce(status,"pthread_sigmask");
|
||||
return(pthreadInfo);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user