-
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: RemoveAll does not ignore EINTR #57966
Comments
Change https://go.dev/cl/463076 mentions this issue: |
Why should it? What if I hit ^C to stop it removing everything? What a mess. |
It is a mess, but If you want to argue for rolling back https://go-review.googlesource.com/c/go/+/249178 then I think that's a separate, bigger discussion. |
It is a mess but hitting The semantics of ignoring // ignoringEINTR makes a function call and repeats it if it returns an Ignoring |
@bcmills https://go.dev/cl/463076 has your CR+1 and is Ready to Submit but you've also added the NeedsInvestigation label to this issue. Should I go ahead and submit cl/463076 or are we waiting for further discussion? |
As far as I'm concerned it's fine to go ahead and fix. I just wasn't sure if the discussion on this issue was concluded. |
The
os.Remove
function ignores EINTR when callingsyscall.Unlink
, as of cl/249178 (August 2020).The
os.RemoveAll
function does not when callingunix.Unlinkat
but should, to be consistent.As the cl/249178 commit message says:
and we are indeed observing
os.RemoveAll
returning EINTR on a FUSE file system.The text was updated successfully, but these errors were encountered: