readline
readline copied to clipboard
Fix a race condition in terminal.go
There is a race condition in terminal.go relating to wait groups. The wg.Add method should be called by the parent goroutine, not the child.
https://golang.org/pkg/sync/#WaitGroup
This was caught by gotsan.
See #122
Bump.
@Alkorin is it possible to merge this?