Can `interruptAccept` checks be removed?
I came across this comment while trying to understand why a plugin unittest I am trying to write hangs on exit in callbackThread::~callbackThread().
https://github.com/epics-modules/asyn/blob/db991c23898d3a3934c7a5c51b09b348a3a8c533/asyn/asynPortDriver/asynPortDriver.cpp#L919-L922
In all likelihood, the hang I am seeing is due to me having missed some preparation. Still, I thought it worth asking. Is the special handling of interruptAccept is still needed? Can some nicer solution can be found? (maybe involving registrars and initHooks)
fyi.
The field(PINI, "RUNNING") was added by epics-base/epics-base@68dbf8addd98b16a2581381b46f6293b906fa176 in epics-base 3.14.11 back in 2009.
The initHook API moved into libCom in 7.0.2 (epics-base/epics-base@dc310a42385564d1c1e6509ddcf5448b3d973540).