diff options
author | Joey Hess <joey@kitenet.net> | 2012-06-28 13:37:03 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-06-28 13:37:03 -0400 |
commit | 4888c5b0422c8006b4c178503b24bced733931fa (patch) | |
tree | e171586eddc9a0bcd0c8f2af3097121f2c25d3a6 /.ghci | |
parent | 40f357fdcf07a9b9844e675fe478ab08f5c1bae8 (diff) |
improve thread termination handling
The reason the DirWatcher had to wait for program termination was because
it used withINotify, so when it finished, its watcher threads were killed.
But since I have two DirWatcher threads now, that was not good, and could
perhaps explain the MVar problem I saw yesterday. In any case, fixed this
part of the code by making the DirWatcher return a handle that can be used
to stop it, and now the main Assistant thread is the only one calling
waitForTermination.
Diffstat (limited to '.ghci')
0 files changed, 0 insertions, 0 deletions