]> go.fuhry.dev Git - fsnotify.git/commit
kqueue: wait to close kqueue until after removing watches
authorNathan Youngman <git@nathany.com>
Sat, 7 Feb 2015 18:10:00 +0000 (11:10 -0700)
committerNathan Youngman <git@nathany.com>
Sat, 7 Feb 2015 21:16:16 +0000 (14:16 -0700)
commita1aa865b54c482f5788d02883d426b3742428cf0
tree26d1fcffb3766b20deedada71bbc8b9f18c35993
parent82a2c3da516da93b9e300d687e8bdb6c5ffe0aa8
kqueue: wait to close kqueue until after removing watches

sending done would close w.kq before Remove had a chance to remove the watches with EV_DELETE, resulting in a file handle leak.

ref #59

also make Close() report the first error returned by Remove and continue.

closes #65
CHANGELOG.md
integration_test.go
kqueue.go