- prevent send on closed channel
- fix random failure in
cmdPlus.Kill()
- replace
SetEnv
withAppendEnv
which retains the current process environment
- fix possible race condition when sending the initial chunk
- fix scanning of output chunks in stderr
- fix possible race condition of stdout file descriptor when starting a command
- fix possible race condition in
Wait*
funcs
- Stop sending output chunks in their own goroutine
- Convert Mutex to RWMutex