8000 Loop on EINTR on Linux by greatroar · Pull Request #50 · pkg/xattr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Loop on EINTR on Linux #50

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

Merged
merged 1 commit into from
Nov 7, 2020
Merged

Loop on EINTR on Linux #50

merged 1 commit into from
Nov 7, 2020

Conversation

greatroar
Copy link
Contributor

On Linux, system calls on some filesystems (CIFS, FUSE) can return EINTR when interrupted by signal handlers. Since the introduction of goroutine preemption in Go 1.14, these interruptions have become very common (e.g., restic/restic#2968). This patch handles them the same way the stdlib will do in Go 1.16 (golang/go@6b42016), by looping until the EINTR goes away.

@kuba-- kuba-- merged commit 9943167 into pkg:master Nov 7, 2020
@greatroar greatroar deleted the eintr-loop branch November 7, 2020 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0