-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
os: Lstat() returns error "Interrupted system call" #8551
Labels
Milestone
Comments
I am not putting EINTR loops around everything "just because". That's cargo cult programming. We register all the async signal handlers to restart the system call for us. What is interrupting the Lstat? That would be the first thing to find out. strace might tell us. Status changed to WaitingForReply. |
From which signal does (*os.File).write's EINTR come? It lacks a comment but retries on EINTR. I see SIGPIPE might be SA_RESTART. Not sure why, though. I'll try to reproduce this on a program repeatedly flushing its buffer+dentry cache and doing I/O and doing Lstats with another child barraging it with signals. I kinda doubt this is ARM-specific, but I bet ARM devices are just slower enough to make triggering it easier? No clue. |
This is probably unrelated, but possible there is a problem with EINTR handling on some/all arm platforms. Looking at Russ' comment in #3, davecheney/gpio#12, should not be possible. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: