delay registering second cleanupPy()

until just _before_ exitDatabase, to ensure
that cleanup happens _after_ devSup detach().

Still allows devSup build() the opportunity
to add epicsAtExit() which happen between
cac cleanup and our cleanup.
This commit is contained in:
Michael Davidsaver
2019-05-06 11:36:48 -07:00
parent 9237bb4d95
commit c4a1c7deea

View File

@ -123,7 +123,7 @@ static void cleanupPrep(initHookState state)
/* register a second time to better our chances of running
* first on exit. eg. before cacExitHandler()
*/
if(state==initHookAfterIocRunning)
if(state==initHookAfterInitDevSup)
epicsAtExit(&cleanupPy, NULL);
}