mask warnings during shutdown()

On some target (OSX), and interrupted recv() will
return with a a spurious error (EBADF).
This commit is contained in:
Michael Davidsaver
2019-07-24 16:07:40 -07:00
parent badf14c4fa
commit a22f866211

View File

@ -1341,7 +1341,8 @@ int BlockingTCPTransportCodec::read(epics::pvData::ByteBuffer* dst) {
} else {
// some other (fatal) error
errlogPrintf("%s : Connection closed with RX socket error %d\n", _socketName.c_str(), err);
if(_isOpen.get())
errlogPrintf("%s : Connection closed with RX socket error %d\n", _socketName.c_str(), err);
return -1;
}
}