Julien Pivotto
de9a32a273
recwatch: Remove watcher on file move
...
Fix #120
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu >
2017-02-11 13:45:32 +01:00
James Shubin
3ac878db62
recwatch: Do not send to channel if closed.
...
If we close the recwatcher right after it's opened, we might have
previously tried to send on the now closed channel.
2017-02-05 18:57:08 -05:00
James Shubin
4803be1987
misc: Rename mgmtmain to lib and remove global package
...
This refactor should make it cleaner to use mgmt.
2016-12-08 23:31:45 -05:00
Alexandre-Xavier Labonté-Lamoureux
ec87781956
test: Tokens should always have a colon
2016-10-11 13:46:59 -04:00
James Shubin
b7bd2d2664
recwatch: Rearrange condition to unconfuse golinter
...
This wasn't a bug, but the go linter is unhappy because it is dumb.
2016-10-03 14:58:08 -04:00
James Shubin
46893e84c3
recwatch: Split recursive watching into sub-package
...
This splits the recursive watching bit of the file file resource into
it's own package. This also de-duplicates the configwatch code and puts
it into the same package. With these bits refactored, it was also easier
to clean up the error code in main.
2016-10-03 14:48:57 -04:00