Files
kubernetes/pkg
k8s-merge-robot c66b2b4e05 Merge pull request #23865 from rhcarvalho/unify-signal-handling
Automatic merge from submit-queue

Unify termination signal handling across platforms

The signals are used to ensure proper execution of cleaning up actions to restore a terminal in:
- [pkg/kubectl/cmd/attach.go#L163-L226](b8d000853e/pkg/kubectl/cmd/attach.go (L163-L226))
- [pkg/kubectl/cmd/util/editor/editor.go#L112-L137](b8d000853e/pkg/kubectl/cmd/util/editor/editor.go (L112-L137))

All supported platforms can handle the same set of signals we're interested in, thus we don't need build contraints to use a set of signals on Linux, while restricting ourselves to only SIGINT on Darwin and Windows.

According to the documentation of os/signal, similar to SIGINT and SIGTERM, SIGHUP causes the program to exit, therefore add it to the list of handled signals.

The fist commit is part of #23643.
2016-05-02 04:09:25 -07:00
..
2016-04-29 17:12:10 -04:00
2016-04-29 17:12:10 -04:00
2016-04-26 15:08:34 -04:00
2016-04-29 17:12:10 -04:00
2016-04-29 17:12:10 -04:00
2016-04-29 17:12:10 -04:00
2015-12-15 13:36:25 -05:00
2015-12-20 21:59:59 -05:00
2016-04-29 17:12:10 -04:00
2016-04-29 17:12:10 -04:00
2016-03-17 09:30:02 +01:00
2016-04-29 17:12:10 -04:00
2016-04-29 17:12:10 -04:00
2016-04-29 17:12:10 -04:00
2016-04-29 17:12:10 -04:00
2016-04-14 17:05:46 -07:00
2016-04-29 17:12:10 -04:00
2016-02-24 11:22:02 -05:00
2016-04-29 17:12:10 -04:00
2016-03-02 20:46:32 -05:00