On Tue, Aug 9, 2016 at 10:33 PM, Ruediger Meier <sweet_f_a@gmx.de> wrote:
Hi,
I'm debugging why my processes do not terminate gracefully at shutdown and found that openSUSE's systemd setup seems to send SIGHUP to user's processes. This is the output of my test program while "shutdown -h"
2016-08-09 21:05:00.556999 catched SIGNAL 1 (SIGHUP) 2016-08-09 21:05:00.557086 catched SIGNAL 15 (SIGTERM) 2016-08-09 21:05:00.557572 catched SIGNAL 1 (SIGHUP)
On other sysvinit systems I get only SIGTERM _one_ time before it would send the final SIGKILL.
Problem: Many user space programs don't handle SIGHUP. Thus they are using the default sig handler and terminate immediately without any cleanup.
What is the reason why SIGHUP is sent? How to disable it to get the known behavior?
What are "your processes" - processes belonging to your login session or processes belonging to some service you created? -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org