summaryrefslogtreecommitdiffhomepage
path: root/runsc
diff options
context:
space:
mode:
authorNicolas Lacasse <nlacasse@google.com>2018-09-07 17:55:04 -0700
committerShentubot <shentubot@google.com>2018-09-07 17:56:07 -0700
commit922d8c3c8c7ecc1d893857425f8e850513ab682b (patch)
tree560b9db64059d5258ff19bcc1175518e06f88186 /runsc
parent9751b800a6835f7febf99f1dee22a5aedd43f381 (diff)
Automated rollback of changelist 211992321
PiperOrigin-RevId: 212066419 Change-Id: Icded56e7e117bfd9b644e6541bddcd110460a9b8
Diffstat (limited to 'runsc')
-rw-r--r--runsc/main.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/runsc/main.go b/runsc/main.go
index c30b29b81..44d30768f 100644
--- a/runsc/main.go
+++ b/runsc/main.go
@@ -179,10 +179,6 @@ func main() {
if *debugLogFD > -1 {
f := os.NewFile(uintptr(*debugLogFD), "debug log file")
- // Dup f to stderr so we capture stack traces on panic.
- if err := syscall.Dup2(int(f.Fd()), int(os.Stderr.Fd())); err != nil {
- cmd.Fatalf("error dup'ing fd %d to stderr: %v", f.Fd(), err)
- }
e = log.MultiEmitter{e, log.GoogleEmitter{&log.Writer{Next: f}}}
} else if *debugLogDir != "" {
if err := os.MkdirAll(*debugLogDir, 0775); err != nil {
@@ -193,10 +189,6 @@ func main() {
if err != nil {
cmd.Fatalf("error opening debug log file in %q: %v", *debugLogDir, err)
}
- // Dup f to stderr so we capture stack traces on panic.
- if err := syscall.Dup2(int(f.Fd()), int(os.Stderr.Fd())); err != nil {
- cmd.Fatalf("error dup'ing fd %d to stderr: %v", f.Fd(), err)
- }
e = log.MultiEmitter{e, log.GoogleEmitter{&log.Writer{Next: f}}}
}