diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-09-24 19:08:45 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-09-24 19:08:45 +0000 |
commit | 9ba96f5767377aaef89fdd99a04034f5d9ad0aaf (patch) | |
tree | b6ea42b5c9cc0fc80aa586cf496303df63c043cb | |
parent | e8ac49cb48c4df57dd9f4f38ff6d89744d464277 (diff) | |
parent | 91abeb1dbc83d7c55fdbbdeec07c1c6c41d80d7a (diff) |
Merge release-20190806.1-176-g91abeb1 (automated)
-rw-r--r-- | runsc/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/main.go b/runsc/main.go index ff74c0a3d..304d771c2 100644 --- a/runsc/main.go +++ b/runsc/main.go @@ -239,7 +239,7 @@ func main() { // want with them. Since Docker and Containerd both eat boot's stderr, we // dup our stderr to the provided log FD so that panics will appear in the // logs, rather than just disappear. - if err := syscall.Dup2(int(f.Fd()), int(os.Stderr.Fd())); err != nil { + if err := syscall.Dup3(int(f.Fd()), int(os.Stderr.Fd()), 0); err != nil { cmd.Fatalf("error dup'ing fd %d to stderr: %v", f.Fd(), err) } |