-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kqueue: failed to read events: "interrupted system call" #49
Labels
Comments
rjeczalik
changed the title
kqueue panic: permission denied
kqueue: failed to read events: "interrupted system call"
Jan 13, 2015
Recent acceptance test on OS X:
3 above is value of iff --git a/watcher_kqueue.go b/watcher_kqueue.go
index f01600b..3db60ff 100644
--- a/watcher_kqueue.go
+++ b/watcher_kqueue.go
@@ -119,6 +119,7 @@ func (k *kqueue) monitor() {
return
default:
}
+ fmt.Println(*k.fd)
n, err := syscall.Kevent(*k.fd, nil, kevn[:], nil)
if err != nil {
fmt.Fprintf(os.Stderr, "kqueue: failed to read events: %q\n", err) |
If you could attempt to reproduce it on: diff --git a/watcher_kqueue.go b/watcher_kqueue.go
index f01600b..23c54e5 100644
--- a/watcher_kqueue.go
+++ b/watcher_kqueue.go
@@ -92,6 +92,7 @@ func unmask(o uint32, w Event) (e Event) {
// del closes fd for `watched` and removes it from internal cache of monitored
// files/directories.
func (k *kqueue) del(w *watched) {
+ fmt.Fprintln(os.Stderr, "deleted fd:", w.fd)
syscall.Close(w.fd)
delete(k.idLkp, w.fd)
delete(k.pthLkp, w.p)
@@ -215,6 +216,7 @@ func (k *kqueue) init() error {
if err != nil {
return err
}
+ fmt.Fprintln(os.Stderr, "kqueue fd:", fd)
k.fd = &fd
return nil
}
@@ -254,6 +256,7 @@ func (k *kqueue) singlewatch(p string, e Event, direct bool,
if err != nil {
return err
}
+ fmt.Fprintln(os.Stderr, "added fd:", fd)
w = &watched{fd: fd, p: p, fi: fi}
}
if direct { or I'll try later on travis.. |
|
Ok.. In this case I have to admit that it's sad.. Life is brutal.. I'll look at it as soon as I'll get into travis based development mood.. |
https://travis-ci.org/rjeczalik/notify/builds/47973996 @pblaszczyk Good job sir! Fancy a kudo? XD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just FYI @pblaszczyk, probably it's just broken for OS X.
Steps to reproduce (sorry, no test yet).
Panics with:
The text was updated successfully, but these errors were encountered: