diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-09-24 12:06:38 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-09-24 12:06:38 -0700 |
commit | 91abeb1dbc83d7c55fdbbdeec07c1c6c41d80d7a (patch) | |
tree | 9137ac9f66a22c7eeaddb6b72ac5e8059eea8c15 | |
parent | bbaaa1fcc2bd9240fd34152213342ac764489bf5 (diff) | |
parent | a25a97624c3460a3c3c9e4f76578ce0235d26c21 (diff) |
Merge pull request #812 from lubinszARM:pr_dup3_arm
PiperOrigin-RevId: 270957224
-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) } |