The client libs receive thread last chance except handler should cause abort shutdown
Bug #541389 reported by
Jeff Hill
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EPICS Base |
Fix Released
|
Medium
|
Jeff Hill |
Bug Description
I am looking at line 594 in tcpiiu.cpp and wondering if initiateAbortSh
Original Mantis Bug: mantis-366
http://
To post a comment you must log in.
committed a fix
cvs diff -wb -- tcpiiu.cpp (in directory C:\hill\ epics\base\ src\ca\ ) ======= ======= ======= ======= ======= ======= ======= ======= ==== epicsmgr/ cvsroot/ epics/base/ src/ca/ tcpiiu. cpp,v
" terminating due to no space in pool " initiateCleanSh utdown ( guard );
errlogPrintf (
" terminating due to C++ exception "%s"\n",
except. what () ); initiateCleanSh utdown ( guard );
errlogPrintf ( initiateCleanSh utdown ( guard );
Index: tcpiiu.cpp
=======
RCS file: /net/phoebus/
retrieving revision 1.154.2.48
diff -u -b -w -b -r1.154.2.48 tcpiiu.cpp
--- tcpiiu.cpp 14 Aug 2009 17:31:34 -0000 1.154.2.48
+++ tcpiiu.cpp 11 Sep 2009 00:44:25 -0000
@@ -582,17 +582,23 @@
"CA client library tcp receive thread "
"C++ exception\n" );
+ epicsGuard < epicsMutex > guard ( this->iiu.mutex );
+ this->iiu.
}
catch ( std::exception & except ) {
"CA client library tcp receive thread "
+ epicsGuard < epicsMutex > guard ( this->iiu.mutex );
+ this->iiu.
}
catch ( ... ) {
"CA client library tcp receive thread "
- "terminating due to a C++ exception\n" );
+ "terminating due to a non-standard C++ exception\n" );
+ epicsGuard < epicsMutex > guard ( this->iiu.mutex );
+ this->iiu.
}
}