mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-01 13:34:20 +01:00
Merge pull request #1789 from Ace-Tang/fix-v2-cnm
katautils: fix shim v2 fail to work with libnetwork
This commit is contained in:
@@ -11,7 +11,6 @@ import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
"syscall"
|
||||
@@ -39,7 +38,7 @@ func runHook(ctx context.Context, hook specs.Hook, cid, bundlePath string) error
|
||||
log.String("hook-args", strings.Join(hook.Args, " ")))
|
||||
|
||||
state := specs.State{
|
||||
Pid: os.Getpid(),
|
||||
Pid: syscall.Gettid(),
|
||||
Bundle: bundlePath,
|
||||
ID: cid,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user