EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  2025  <2026 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  2025  <2026
<== Date ==> <== Thread ==>

Subject: Re: RFC: add a mechanism to call epicsExit when signals are received
From: Michael Davidsaver via Tech-talk <tech-talk at aps.anl.gov>
To: Érico Nogueira Rolim <erico.rolim at lnls.br>, Timothy Speight - STFC UKRI <timothy.speight at stfc.ac.uk>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Fri, 26 Jun 2026 12:53:30 -0700
On 6/26/26 10:30 AM, Érico Nogueira Rolim via Tech-talk wrote:
Any thoughts or updates on Linux signalling for EPICS from the devs?


I don't think there have been any updates, but I remember there were implementation suggestions for my idea. For epics-base, it would consist of launching a thread listening on an epicsEvent, which, when signaled, would call epicsExit. For a module with platform specific code, it would consist of registering signal handlers (possibly automatically or via iocsh commands) and having those signal the previously mentioned epicsEvent.


If you're keen on getting your hands a little dirty, how about we collaborate on moving this forward? Maybe start implementing the epics-base interface so we can check its suitability for the support module?

As far as APIs.  If epicsAtExit() is not enough, or if the ordering gets too complex, I would suggest looking at the "de-init" hooks.  See "initHookAtShutdown" in initHooks.h .

also fyi. https://github.com/epics-base/epics-base/pull/673



References:
RFC: add a mechanism to call epicsExit when signals are received Timothy Speight - STFC UKRI via Tech-talk
Re: RFC: add a mechanism to call epicsExit when signals are received Érico Nogueira Rolim via Tech-talk

Navigate by Date:
Prev: Re: EPICS support for Fastech motors Mark Rivers via Tech-talk
Next: Re: EPICS thread on Marana problem Wlodek, Jakub via Tech-talk
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  2025  <2026
Navigate by Thread:
Prev: Re: RFC: add a mechanism to call epicsExit when signals are received Érico Nogueira Rolim via Tech-talk
Next: Question About Calculating Checksum in a StreamDevice Protocol Huishan via Tech-talk
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  2025  <2026
ANJ, 28 Jun 2026 · Home · News · About · Talk · Base · Modules · Extensions ·
· Distributions · Download · Documents · Links · Licensing ·