better checking for pthread_create

This commit is contained in:
Marty Kraimer
2005-11-21 21:21:12 +00:00
parent 533e99d33c
commit 33865495c9
+7 -3
View File
@@ -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);
}