Skip to content
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

FileWatching.Pidfile: on Windows, we must rename a file before we can delete it #44984

Merged
merged 3 commits into from
Apr 20, 2022

Conversation

DilumAluthge
Copy link
Member

No description provided.

@DilumAluthge DilumAluthge added the bugfix This change fixes an existing bug label Apr 15, 2022
@DilumAluthge DilumAluthge added the filesystem Underlying file system and functions that use it label Apr 15, 2022
@DilumAluthge
Copy link
Member Author

@DilumAluthge
Copy link
Member Author

@vtjnash I noticed that there is one other occurence of rm, on line 68 here:

Should we also replace that use of rm with tryrmopenfile?

@vtjnash
Copy link
Member

vtjnash commented Apr 15, 2022

Yes, anytime we delete an open file it is best to use the helper

@DilumAluthge DilumAluthge requested review from vtjnash and removed request for vtjnash April 15, 2022 05:35
@vtjnash vtjnash merged commit c874cdb into master Apr 20, 2022
@vtjnash vtjnash deleted the dpa/pidfile-rm-on-windows branch April 20, 2022 14:19
vtjnash pushed a commit to vtjnash/Pidfile.jl that referenced this pull request Apr 20, 2022
Convert several occurrences of `rm` to `tryrmopenfile`.

Refs: JuliaLang/julia#44984
vtjnash added a commit to vtjnash/Pidfile.jl that referenced this pull request Apr 20, 2022
Convert several occurrences of `rm` to `tryrmopenfile`.

Refs: JuliaLang/julia#44984
Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug filesystem Underlying file system and functions that use it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants