diff options
author | Sebastiaan van Stijn <github@gone.nl> | 2022-05-02 00:05:21 +0200 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2022-05-05 00:53:49 +0200 |
commit | 2ec2b65e45ca6ae28480c6da49aaf06fda1a091f (patch) | |
tree | 1437b08972ea68148233b2e81dcfb3cf119d9a1d /plugin | |
parent | c9b37e5cb430b01816c4d8e18d199745d0d6f765 (diff) | |
download | docker-2ec2b65e45ca6ae28480c6da49aaf06fda1a091f.tar.gz |
libcontainerd: SignalProcess(): accept syscall.Signal
This helps reducing some type-juggling / conversions further up
the stack.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/executor/containerd/containerd.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/executor/containerd/containerd.go b/plugin/executor/containerd/containerd.go index 0daf8afda6..10186c6c91 100644 --- a/plugin/executor/containerd/containerd.go +++ b/plugin/executor/containerd/containerd.go @@ -4,6 +4,7 @@ import ( "context" "io" "sync" + "syscall" "github.com/containerd/containerd" "github.com/containerd/containerd/cio" @@ -113,7 +114,7 @@ func (e *Executor) IsRunning(id string) (bool, error) { // Signal sends the specified signal to the container func (e *Executor) Signal(id string, signal int) error { - return e.client.SignalProcess(context.Background(), id, libcontainerdtypes.InitProcessName, signal) + return e.client.SignalProcess(context.Background(), id, libcontainerdtypes.InitProcessName, syscall.Signal(signal)) } // ProcessEvent handles events from containerd |