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  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: softIOC and SIGHUP
From: Ralph Lange <[email protected]>
To: Dmitry Teytelman <[email protected]>
Cc: [email protected]
Date: Mon, 20 Sep 2010 13:23:04 -0400
Hello Dmitry,

I agree that it generally would be better to check the SIGHUP handling before changing it.
Did you try if changing that behavior fixes the issue you are seeing?


It would be great if you opened a bug report against the Launchpad bug tracker for EPICS Base [1] to report this issue. (And maybe even file a patch if you were able to fix it.) Thanks a lot!

Also, is there any particular reason to not run the IOC inside a wrapper like procServ [2]? That would remove the need to use nohup in the first place.

Thank you,
Ralph

[1] https://bugs.launchpad.net/epics-base/+filebug
[2] https://sourceforge.net/projects/procserv/


On 17.09.2010 18:53, Dmitry Teytelman wrote:
Hello all,

Hello,

I am running into a puzzling problem with a softIOC on Linux. The IOC
is running on fairly standard x86 PC hardware under a custom Linux
distribution (buildroot/busybox/uclibc/base-3.14.11). The IOC is
normally started with /usr/bin/nohup, so that one can ssh to the unit,
restart the IOC and disconnect. This worked very well until I've
transitioned from older linuxthreads to NPTL. Now the IOC dies when it
gets SIGHUP, even when started under nohup.

A bit of digging showed that the IOC installs a handler and unblocks
SIGHUP when it calls epicsSignalInstallSigHupIgnore() during iocInit.
It seems to me it might be better to check first if SIGHUP is ignored
and only modify settings if it isn't.


Replies:
Re: softIOC and SIGHUP Eric Norum
Re: softIOC and SIGHUP Dmitry Teytelman
References:
softIOC and SIGHUP Dmitry Teytelman

Navigate by Date:
Prev: Re: o.c.swt.widgets: ... Kasemir, Kay
Next: Re: o.c.swt.widgets: ... Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: softIOC and SIGHUP Dmitry Teytelman
Next: Re: softIOC and SIGHUP Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 21 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·