File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 19
19
package consoleutil
20
20
21
21
import (
22
- gocontext "context"
22
+ "context"
23
23
"os"
24
24
"os/signal"
25
25
@@ -31,7 +31,7 @@ import (
31
31
32
32
// HandleConsoleResize resizes the console.
33
33
// From https://github.com/containerd/containerd/blob/v1.7.0-rc.2/cmd/ctr/commands/tasks/tasks_unix.go#L43-L68
34
- func HandleConsoleResize (ctx gocontext .Context , task resizer , con console.Console ) error {
34
+ func HandleConsoleResize (ctx context .Context , task resizer , con console.Console ) error {
35
35
// do an initial resize of the console
36
36
size , err := con .Size ()
37
37
if err != nil {
Original file line number Diff line number Diff line change 17
17
package consoleutil
18
18
19
19
import (
20
- gocontext "context"
20
+ "context"
21
21
"time"
22
22
23
23
"github.com/containerd/console"
@@ -26,7 +26,7 @@ import (
26
26
27
27
// HandleConsoleResize resizes the console.
28
28
// From https://github.com/containerd/containerd/blob/v1.7.0-rc.2/cmd/ctr/commands/tasks/tasks_windows.go#L34-L61
29
- func HandleConsoleResize (ctx gocontext .Context , task resizer , con console.Console ) error {
29
+ func HandleConsoleResize (ctx context .Context , task resizer , con console.Console ) error {
30
30
// do an initial resize of the console
31
31
size , err := con .Size ()
32
32
if err != nil {
Original file line number Diff line number Diff line change 17
17
package signalutil
18
18
19
19
import (
20
- gocontext "context"
20
+ "context"
21
21
"os"
22
22
"os/signal"
23
23
"syscall"
@@ -29,12 +29,12 @@ import (
29
29
30
30
// killer is from https://github.com/containerd/containerd/blob/v1.7.0-rc.2/cmd/ctr/commands/signals.go#L30-L32
31
31
type killer interface {
32
- Kill (gocontext .Context , syscall.Signal , ... containerd.KillOpts ) error
32
+ Kill (context .Context , syscall.Signal , ... containerd.KillOpts ) error
33
33
}
34
34
35
35
// ForwardAllSignals forwards signals.
36
36
// From https://github.com/containerd/containerd/blob/v1.7.0-rc.2/cmd/ctr/commands/signals.go#L34-L55
37
- func ForwardAllSignals (ctx gocontext .Context , task killer ) chan os.Signal {
37
+ func ForwardAllSignals (ctx context .Context , task killer ) chan os.Signal {
38
38
sigc := make (chan os.Signal , 128 )
39
39
signal .Notify (sigc )
40
40
go func () {
You can’t perform that action at this time.
0 commit comments