Skip to content

Commit

Permalink
i'm an idiot
Browse files Browse the repository at this point in the history
  • Loading branch information
sreya committed Jul 3, 2024
1 parent ed4be1e commit c09aafe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cli/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -718,11 +718,10 @@ func runDockerCVM(ctx context.Context, log slog.Logger, client dockerutil.Docker
if err != nil {
return xerrors.Errorf("exec inspect: %w", err)
}

sigs := make(chan os.Signal, 1)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
go func() {
err := func() error {
sigs := make(chan os.Signal, 1)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
log.Info(ctx, "waiting for signal")
sig := <-sigs
sigstr := "TERM"
Expand Down

0 comments on commit c09aafe

Please sign in to comment.