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.