diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-03 13:49:22 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-03 13:49:22 -0600 |
commit | 959055420845d7c63148fd5be8f9cf4285e2446b (patch) | |
tree | d0a64e601f458feae6873e982f87b56a0ad33923 /src/nshd | |
parent | 9463f76baa6012fe6abb6f8ce229caa6d54c1216 (diff) |
Fix issues in inotify bindings
Diffstat (limited to 'src/nshd')
-rw-r--r-- | src/nshd/hackers_git/hackers_watch.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nshd/hackers_git/hackers_watch.go b/src/nshd/hackers_git/hackers_watch.go index 3d72f94..f902229 100644 --- a/src/nshd/hackers_git/hackers_watch.go +++ b/src/nshd/hackers_git/hackers_watch.go @@ -137,7 +137,7 @@ func (o *Hackers) worker() { if err != nil { worker_error("failed to load %q: %v", o.cfg.Yamldir, err) } - for event, _ := o.in_fd.Read(); event != nil; event, _ = o.in_fd.Read() { + for event, err := o.in_fd.Read(); err == nil; event, err = o.in_fd.Read() { switch event.Wd { case o.in_wd_yaml: // handle updates to yaml files |