Experimental Physics and Industrial Control System
On 10/08/2015 01:40 PM, Michael Davidsaver wrote:
> Actually, it looks to me like the call to errlogRemoveListeners could
> be moved to the beginning of logClientDestroy, before the client
> thread is stopped.
Be careful with that, the order that the two epicsAtExit() routines will
be run isn't obvious, and errlogRemoveListeners() doesn't always lock
the pvtData.listenerLock. The IOC is also not the only executable that
uses the errlog subsystem, although it's less common for other
applications to start a logClient.
I'm not saying we can't make that change, but it should be approached
with caution and tests which start (and hence shut down) the two
subsystems in both orders.
- Andrew
--
Light thinks it travels faster than anything but it is wrong.
No matter how fast light travels, it finds the darkness has
always got there first, and is waiting for it.
-- Terry Pratchett, Reaper Man
- References:
- iocLogClient and atExit crash freddie.akeroyd
- Re: iocLogClient and atExit crash Michael Davidsaver
- Navigate by Date:
- Prev:
Re: iocLogClient and atExit crash Michael Davidsaver
- Next:
TMCM-3110 3-axis controller Peredkov, Sergey
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
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:
Re: iocLogClient and atExit crash Michael Davidsaver
- Next:
RE: iocLogClient and atExit crash freddie.akeroyd
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
<2015>
2016
2017
2018
2019
2020
2021
2022
2023
2024