suspend task if ca_import() fails

This commit is contained in:
Jeff Hill
1999-10-14 23:34:18 +00:00
parent 37b25dd8dc
commit 7584199835

View File

@@ -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