Closed lukechampine closed 9 years ago
getPassword and echoOn were concurrently writing to the same global ws variable, causing a data race. We don't actually care about the value of ws in this code, so we can simply pass a nil to syscall.Wait4 instead.
getPassword
echoOn
ws
nil
syscall.Wait4
Nice fix, thanks!
getPassword
andechoOn
were concurrently writing to the same globalws
variable, causing a data race. We don't actually care about the value ofws
in this code, so we can simply pass anil
tosyscall.Wait4
instead.