I created mantis 225, vxWorks epicsThreadCreate returns
valid (non-nill) thread id when thread wasnt created, and
assigned it to Marty.
I found this bug when regression testing CA against an
out of memory IOC.
I suggest the following patch.
Index: osdThread.c
===================================================================
RCS file:
/net/phoebus/epicsmgr/cvsroot/epics/base/src/libCom/osi/os/vxWorks/osdThread
.c,v
retrieving revision 1.35.2.8
diff -u -r1.35.2.8 osdThread.c
--- osdThread.c 17 Nov 2004 19:58:09 -0000 1.35.2.8
+++ osdThread.c 9 Nov 2005 19:33:45 -0000
@@ -145,7 +145,7 @@
VX_FP_TASK, stackSize,
(FUNCPTR)createFunction,(int)funptr,(int)parm,
0,0,0,0,0,0,0,0);
- if(tid==0) {
+ if(tid==ERROR) {
errlogPrintf("epicsThreadCreate taskSpawn failure for %s\n",name);
return(0);
}
Jeff
__________________________________________________________
Jeffrey O. Hill Mail [email protected]
LANL MS H820 Voice 505 665 1831
Los Alamos NM 87545 USA Fax 505 665 5107