Skip to content

Commit

Permalink
Stop changing FileName
Browse files Browse the repository at this point in the history
Because race condition occurs.
  • Loading branch information
noborus committed Apr 1, 2022
1 parent 15cd57b commit cd18167
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions oviewer/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ func ExecCommand(command *exec.Cmd) (*Root, error) {
<-docout.eofCh
atomic.StoreInt32(&docout.changed, 1)
atomic.StoreInt32(&docerr.changed, 1)
docout.FileName = "STDOUT(done)"
docerr.FileName = "STDERR(done)"
atomic.StoreInt32(&docout.closed, 1)
atomic.StoreInt32(&docerr.closed, 1)
}()
Expand Down

0 comments on commit cd18167

Please sign in to comment.