summaryrefslogtreecommitdiff
path: root/src/inotify
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-09-03 16:57:24 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-09-03 16:57:24 -0600
commit82de0f5ad450f3add2a8e7674cf5e019af609a66 (patch)
tree235460147ae873e27113b4f95bf36125d8498e2a /src/inotify
parent0adc8879233bfb020259ebb43e33a35c5b00a8f1 (diff)
The comment at the bottom of hackers_watch.go was wrong; fix the race.
The actual determinant was this race main worker ------------------- Close() Read() Exit() If Read() returned between when Close() happened and when Exit() happened, then the code ran. It doesn't *really* matter if the code runs, but for predictability, set up a wait group to have Close() block until the worker exits.
Diffstat (limited to 'src/inotify')
0 files changed, 0 insertions, 0 deletions