Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • G go
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • go
  • Repository
  • go
  • src
  • os
  • exec
  • exec.go
Find file BlameHistoryPermalink
  • Ian Lance Taylor's avatar
    os/exec: add closeOnce.WriteString method · b906df65
    Ian Lance Taylor authored Nov 15, 2016
    Add an explicit WriteString method to closeOnce that acquires the
    writers lock.  This overrides the one promoted from the
    embedded *os.File field.  The promoted one naturally does not acquire
    the lock, and can therefore race with the Close method.
    
    Fixes #17647.
    
    Change-Id: I3460f2a0d503449481cfb2fd4628b4855ab0ecdf
    Reviewed-on: https://go-review.googlesource.com/33298
    
    
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
    b906df65
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7