• Cristian Maglie's avatar
    Fixed a couple of (very rare) race conditions (#2112) · 5110f0bf
    Cristian Maglie authored
    * Fixed concurrent write to variables `err` and `n`
    
    * Fix concurrent access to p.cmd.Process
    
    The go-routine was spawned before the process was started. This means
    that p.Kill may read p.cmd.Process before it is written in p.Run.
    5110f0bf
monitor_test.go 2.99 KB