Although the issue does not appear on an IOC on the same server, I found out that the IOC is using relatively older modules versions; asyn 4.38 and stream device 2.8.10. I will try updating them
and re-build the IOC.
Stream and ASYN are unrelated.
Have you updated iocStats, as Andrew suggested? That's the module that implements the exit record.
BTW.
Nothing happens, seems like the IOC shell is waiting for the “exit” to happen so I have to use Ctrl-C to force quit the IOC.
I hope you are aware that in the iocShell, Ctrl-C is *not* the same as "exit".
While "exit" or Ctrl-D (or the exit record) trigger an orderly shutdown that runs all registered exit hook routines, Ctrl-C stops the IOC immediately without running the exit hooks.
Depending on your device drivers, there might be a noticeable difference between the two. Often, there is not.
Cheers,
~Ralph