EPICS Home

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: Ralph Lange via Tech-talk <tech-talk at aps.anl.gov>
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Thu, 3 Apr 2025 14:17:44 +0100
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.

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. 

Cheers,
~Ralph

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

Navigate by Date:
Prev: Re: RFC: add a mechanism to call epicsExit when signals are received Michael Davidsaver via Tech-talk
Next: Re: RFC: add a mechanism to call epicsExit when signals are received Jure Varlec 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 Érico Nogueira Rolim via Tech-talk
Next: Re: RFC: add a mechanism to call epicsExit when signals are received Érico Nogueira Rolim 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