Skip to content

Commit

Permalink
fix formatting error
Browse files Browse the repository at this point in the history
  • Loading branch information
divyansh42 committed Oct 27, 2023
1 parent 3e547d8 commit 474f164
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pkg/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -996,14 +996,14 @@ func (d *stiDocker) RunContainer(opts RunContainerOptions) error {
if signal == syscall.SIGQUIT {
buf := make([]byte, 1<<16)
runtime.Stack(buf, true)
f, err := os.Create("/var/log/s2i_docker_stack_trace.log")
if err != nil {
return
}
defer f.Close()
w := bufio.NewWriter(f)
f, err := os.Create("/var/log/s2i_docker_stack_trace.log")
if err != nil {
return
}
defer f.Close()
w := bufio.NewWriter(f)
w.Write(buf)
w.Flush()
w.Flush()
}
os.Exit(2)
}
Expand Down

0 comments on commit 474f164

Please sign in to comment.