SIGTERM + termination

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

In the bug reported in
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.

-------------- 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: <>

More information about the openconnect-devel mailing list