summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNicolas Lacasse <nlacasse@google.com>2018-09-21 13:53:32 -0700
committerShentubot <shentubot@google.com>2018-09-21 13:54:35 -0700
commitd260e808f478e5c5b96d574d49f315f3823aa385 (patch)
tree684fc4af8ddc6b283a113ca1cfe8802f6f46ae6a
parent95f30ef67b014c3d2ae6564465bbae1f2543796b (diff)
The "action" in container.Signal should be "signal".
PiperOrigin-RevId: 214038776 Change-Id: I4ad212540ec4ef4fb5ab5fdcb7f0865c4f746895
-rw-r--r--runsc/container/container.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/container/container.go b/runsc/container/container.go
index 90dad1c80..a1b31d861 100644
--- a/runsc/container/container.go
+++ b/runsc/container/container.go
@@ -455,7 +455,7 @@ func (c *Container) WaitPID(pid int32, clearStatus bool) (syscall.WaitStatus, er
// TODO: Distinguish different error types.
func (c *Container) Signal(sig syscall.Signal) error {
log.Debugf("Signal container %q: %v", c.ID, sig)
- if err := c.requireStatus("running", Running); err != nil {
+ if err := c.requireStatus("signal", Running); err != nil {
return err
}
// TODO: Query the container for its state, then save it.