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

Subject: Re: RFC: add a mechanism to call epicsExit when signals are received
From: Érico Nogueira Rolim via Tech-talk <tech-talk at aps.anl.gov>
To: Ralph Lange <ralph.lange at gmx.de>, EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Fri, 4 Apr 2025 15:29:02 +0000
On 03/04/2025 10:17, Ralph Lange via Tech-talk wrote:
> Another attempt to summarize...
>
> 1. You want EPICS Base to provide - on demand, after calling a
> function - an extra thread that waits on a specific exitEvent and
> calls epicsExit when it receives it.
>
> I'm generally fine with that, given that this is portable,
> lightweight, and doesn't add anything if you don't call the function.
> To not expose the event mechanism, I would add another function
> wrapping around sending exitEvent.


Given the existence of epicsExitLater, it might even be possible to
share part of the implementation with it. And for sure, no direct usage
of the event!


>
> 2. You want EPICS Base to install signal handlers for an arbitrary
> number of signals, which send the exitEvent when they get called.
>
> For me, this is the more problematic part. Not portable, possible side
> effects.
>
> Could Base implement the first part (exit-on-event), and the second
> part (signal handlers) be left to a separate module? Such a module
> could provide implementations for Windows and Linux and be a lot more
> flexible, with a lifecycle that is not bound to EPICS Base.


That would seem reasonable to me. Is that your recommendation for moving
this forward?


>
> Cheers,
> ~Ralph



Aviso Legal: Esta mensagem e seus anexos podem conter informações confidenciais e/ou de uso restrito. Observe atentamente seu conteúdo e considere eventual consulta ao remetente antes de copiá-la, divulgá-la ou distribuí-la. Se você recebeu esta mensagem por engano, por favor avise o remetente e apague-a imediatamente.

Disclaimer: This email and its attachments may contain confidential and/or privileged information. Observe its content carefully and consider possible querying to the sender before copying, disclosing or distributing it. If you have received this email by mistake, please notify the sender and delete it immediately.

References:
RFC: add a mechanism to call epicsExit when signals are received Érico Nogueira Rolim via Tech-talk
Re: RFC: add a mechanism to call epicsExit when signals are received Ralph Lange via Tech-talk

Navigate by Date:
Prev: Re: RFC: add a mechanism to call epicsExit when signals are received Érico Nogueira Rolim via Tech-talk
Next: RE: Phoebus is unable to see PVs inside docker containers Srinivas, Dhruv 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
Navigate by Thread:
Prev: Re: RFC: add a mechanism to call epicsExit when signals are received Ralph Lange via Tech-talk
Next: Phoebus is unable to see PVs inside docker containers Srinivas, Dhruv 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
ANJ, 04 Apr 2025 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·