You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This is another issue, but unix.Open return 2^32 - 1 as file descriptor when some error is occurred in my environment.
for watchfd == 0 || watchfd == -1 || watchfd == 4294967295 {
watchfd, err = unix.Open(name, openMode, 0700)
if (watchfd == -1 || watchfd == 4294967295) && err != unix.EINTR {
return "", err
}
}
But I can't decide if this is an effect of upgrading macOS or a problem in my environment.
Give me your opinion, please.
The text was updated successfully, but these errors were encountered:
Retry the unix.Open() if the error returned is EINTR; looking around the
web it seems many systems handle it like this. This is also what
os.Open() does:
golang/go@50d0ee0Fixes#354
Retry the unix.Open() if the error returned is EINTR; looking around the
web it seems many systems handle it like this. This is also what
os.Open() does:
golang/go@50d0ee0Fixes#354
Retry the unix.Open() if the error returned is EINTR; looking around the
web it seems many systems handle it like this. This is also what
os.Open() does:
golang/go@50d0ee0Fixes#354
Which operating system (GOOS) and version are you using?
macOS: Big Sur 11.0.1
Machine detail: MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports), CPU: 2.3 GHz Quad Core Intel Core i7
Please describe the issue that occurred.
I upgrade macOS then
unix.Open
sometimes return errorinterrupted system call
.So when process reached https://github.com/fsnotify/fsnotify/blob/master/kqueue.go#L218 and error is EINTR, I want to retry file open.
This like below:
But I can't decide if this is an effect of upgrading macOS or a problem in my environment.
Give me your opinion, please.
The text was updated successfully, but these errors were encountered: