SIGTERM + termination

Nikos Mavrogiannopoulos n.mavrogiannopoulos at gmail.com
Fri Mar 20 08:26:56 PDT 2015


In the bug reported in https://bugzilla.redhat.com/show_bug.cgi?id=1200623
I think there is a good argumentation on why SIGTERM should behave the
same way as SIGINT. SIGINT is fine on interactive usage of openconnect
(due to ^C), but on non-interactive uses the expected way to
gracefully kill a daemon is via SIGTERM. So even though in the bug I
claim that SIGINT is the documented way, it is not the expected way,
and this is what this patch does. It makes SIGTERM equivalent to
SIGINT, and SIGKILL or any other unhandled signal can be used to
simulate the previous behavior. No regressions are expected.

regards,
Nikos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-SIGTERM-gracefully-terminates-the-program.patch
Type: text/x-diff
Size: 1722 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openconnect-devel/attachments/20150320/6e80f144/attachment.bin>


More information about the openconnect-devel mailing list