summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-03-10 04:17:14 +0000
committergVisor bot <gvisor-bot@google.com>2021-03-10 04:17:14 +0000
commit3ff22594df40a75093c4532aba800ac593cf274a (patch)
tree5fc691bbcded8590de2bcbdfd339c2d9a240fcc0
parentfbc3187cbf813002017121b53d77e44ebd29a845 (diff)
parente0e04814b40f1d4077d1cf6001395bd6a919b288 (diff)
Merge release-20210301.0-32-ge0e04814b (automated)
-rw-r--r--runsc/specutils/namespace.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/specutils/namespace.go b/runsc/specutils/namespace.go
index d8b9334c7..69d7ba5c4 100644
--- a/runsc/specutils/namespace.go
+++ b/runsc/specutils/namespace.go
@@ -275,7 +275,7 @@ func MaybeRunAsRoot() error {
}()
if err := cmd.Wait(); err != nil {
if exit, ok := err.(*exec.ExitError); ok {
- if ws, ok := exit.Sys().(unix.WaitStatus); ok {
+ if ws, ok := exit.Sys().(syscall.WaitStatus); ok {
os.Exit(ws.ExitStatus())
}
log.Warningf("No wait status provided, exiting with -1: %v", err)