Hi Michael,
On 05/25/2017 09:06 AM, Michael Davidsaver wrote:
> I've realized that I need to hook into iocShutdown() to be able to
> automatically shutdown QSRV during unittests. I need to do so during
> the "stop" phase (eg. scanStop()) before records and lockSets are free'd.
>
> My first though would be to use initHooks.h. So I'd like to add
>
> * initHookAtShutdown - at start of iocShutdown()
> * initHookAfterCloseLinks - after dbCaShutdown()
> * initHookAtStopped - Just after iocShutdown() returns
No objections in principle, but a cleaner option might be to add methods
to the dbServer structure (which QSRV should support if possible) and
make the rsrv_init(), rsrv_run() and rsrv_pause() calls in iocInit into
calls to all registered servers through this interface. The
dbRegisterServer() call in rsrv_init() would move into a registrar
routine referenced in a new rsrv.dbd file.
Will QSRV support pausing? This was added for DESY's hot-standby work; I
don't see it as particularly important, but QSRV should probably display
a warning message when someone tries to use it if it's not supported.
- Andrew
--
Arguing for surveillance because you have nothing to hide is no
different than making the claim, "I don't care about freedom of
speech because I have nothing to say." -- Edward Snowdon
- Replies:
- Re: iocShutdown() hooks Michael Davidsaver
- References:
- iocShutdown() hooks Michael Davidsaver
- Navigate by Date:
- Prev:
Jenkins build is back to normal : epics-base-3.16-linux32-test #83 APS Jenkins
- Next:
Build failed in Jenkins: epics-base-3.16-win64s-test #87 APS Jenkins
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
<2017>
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
iocShutdown() hooks Michael Davidsaver
- Next:
Re: iocShutdown() hooks Michael Davidsaver
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
<2017>
2018
2019
2020
2021
2022
2023
2024
|