summaryrefslogtreecommitdiff
path: root/libpod/oci.go
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2018-02-06 13:31:21 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-02-06 19:03:57 +0000
commitd20c1a9911b2614640ef3c417a5b7af7254f52b5 (patch)
tree6b269c86a194e2ceaff324aa43b765374428726a /libpod/oci.go
parent0d7e6fa22fa15254e1599b9f41ab9be2650cff71 (diff)
downloadpodman-d20c1a9911b2614640ef3c417a5b7af7254f52b5.tar.gz
podman-d20c1a9911b2614640ef3c417a5b7af7254f52b5.tar.bz2
podman-d20c1a9911b2614640ef3c417a5b7af7254f52b5.zip
Change stop signal default to SIGTERM
Signed-off-by: Matthew Heon <mheon@redhat.com> Closes: #299 Approved by: rhatdan
Diffstat (limited to 'libpod/oci.go')
-rw-r--r--libpod/oci.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/oci.go b/libpod/oci.go
index 4ca0bfbef..86313a493 100644
--- a/libpod/oci.go
+++ b/libpod/oci.go
@@ -394,6 +394,7 @@ func (r *OCIRuntime) startContainer(ctr *Container) error {
// killContainer sends the given signal to the given container
func (r *OCIRuntime) killContainer(ctr *Container, signal uint) error {
+ logrus.Debugf("Sending signal %d to container %s", signal, ctr.ID())
if err := utils.ExecCmdWithStdStreams(os.Stdin, os.Stdout, os.Stderr, r.path, "kill", ctr.ID(), fmt.Sprintf("%d", signal)); err != nil {
return errors.Wrapf(err, "error sending signal to container %s", ctr.ID())
}