mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-06 12:06:49 +00: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:
commit
c191abb770
@ -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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user