Skip to content

[6.0] Fix ProcessInfo.processName for Windows (#839) #840

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

Conversation

iCharlesHu
Copy link
Contributor

Explanation: fix ProcessInfo.processName for Windows by using existing String.lastPathComponent
Scope: Limited to ProcessInfo._getProcessName
Original PR: #839
Risk: Minimal - no new code introduced since we are replying on existing code.
Reviewer: @jmschonfeld

Instead of relying on hard coding PATH_SEPARATOR, use existing .lastPathComponent that already works on Windows
@iCharlesHu iCharlesHu requested a review from itingliu August 9, 2024 20:00
@iCharlesHu iCharlesHu marked this pull request as ready for review August 9, 2024 20:00
@iCharlesHu
Copy link
Contributor Author

@swift-ci please test

@iCharlesHu iCharlesHu merged commit 92b84e4 into swiftlang:release/6.0 Aug 9, 2024
3 checks passed
@iCharlesHu iCharlesHu deleted the charles/fix-process-name-swift-6 branch August 9, 2024 21:32
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