James Shubin
46be83f8f7
legal: Re-license to GPLv3
2017-09-11 18:07:47 -04:00
James Shubin
98bc96c911
golint: Fixup issues found in the report
...
This also increases the max allowed to 5% -- I'm happy to make this
lower if someone asks.
2017-02-22 22:18:55 -05:00
James Shubin
c189278e24
recwatch: Unblock from sending on exit
...
If we receive an exit signal while we are waiting to send a message, we
should still be able to shut down.
2017-02-22 16:41:47 -05:00
James Shubin
2a8606bd98
recwatch: Close cleanly after Watcher finishes
...
This cleans up the recwatch code to avoid some possible races. While you
were previously able to call Close more than once, this was really
something that would mask bugs, rather than a useful feature.
2017-02-22 16:41:26 -05:00
James Shubin
a981cfa053
legal: Oh yeah, it is 2017
2017-02-16 01:34:32 -05:00
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