check for ERROR not for 0

This commit is contained in:
Marty Kraimer
2005-11-14 20:05:21 +00:00
parent 04ae05f13c
commit 560bb0fb35

View File

@@ -145,8 +145,9 @@ epicsThreadId epicsThreadCreate(const char *name,
VX_FP_TASK, stackSize,
(FUNCPTR)createFunction,(int)funptr,(int)parm,
0,0,0,0,0,0,0,0);
if(tid==0) {
errlogPrintf("epicsThreadCreate taskSpawn failure for %s\n",name);
if(tid==ERROR) {
errlogPrintf("epicsThreadCreate %s failure %s\n",
name,strerror(errno));
return(0);
}
return((epicsThreadId)tid);