SIGTERM + termination

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>


[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux