mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
The "action" in container.Signal should be "signal".
PiperOrigin-RevId: 214038776 Change-Id: I4ad212540ec4ef4fb5ab5fdcb7f0865c4f746895
This commit is contained in:
committed by
Shentubot
parent
95f30ef67b
commit
d260e808f4
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user