From 75841998352eebb9c6a9141bdf518f7aca448aec Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 14 Oct 1999 23:34:18 +0000 Subject: [PATCH] suspend task if ca_import() fails --- src/ca/vxWorks_depen.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/ca/vxWorks_depen.c b/src/ca/vxWorks_depen.c index 7bb332b99..f03303fbc 100644 --- a/src/ca/vxWorks_depen.c +++ b/src/ca/vxWorks_depen.c @@ -29,6 +29,11 @@ * Modification Log: * ----------------- * $Log$ + * Revision 1.41 1999/09/02 21:44:50 jhill + * improved the way that socket error numbers are converted to strings, + * changed () to (void) in func proto, and fixed missing parameter to + * checkConnWatchdogs() bug resulting from this + * * Revision 1.40 1999/07/16 21:08:02 jhill * fixed bug occurring when connection dropped while waiting to send * @@ -948,7 +953,13 @@ void cac_recv_task(int tid) taskwdInsert((int) taskIdCurrent, NULL, NULL); status = ca_import(tid); - SEVCHK(status, "cac_recv_task()"); + /* + * make sure that we stop if ECA_NOCACTX is returned + */ + if (status!=ECA_NORMAL) { + SEVCHK (status, "cac_recv_task()"); + taskSuspend (taskIdSelf()); + } /* * once started, does not exit until