diff options
author | Nicolas Lacasse <nlacasse@google.com> | 2018-10-03 14:53:10 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-10-03 14:54:21 -0700 |
commit | 9f2ba6ac3e7b56d428ef4369a7326dd85f30642d (patch) | |
tree | 112ed23d5e19a4f027c7b3a4150012df23555fc6 /runsc | |
parent | 8e729e0e1fd22147d2a609f9bae13aa4d96f02fd (diff) |
Automated rollback of changelist 215585559
PiperOrigin-RevId: 215633475
Change-Id: I7bc471e3b9a2c725fb5e15b3bbcba2ee1ea574b1
Diffstat (limited to 'runsc')
-rw-r--r-- | runsc/main.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/runsc/main.go b/runsc/main.go index 7e704a127..2a18c4b9e 100644 --- a/runsc/main.go +++ b/runsc/main.go @@ -177,10 +177,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 { @@ -191,10 +187,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}}} } |