You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using Foundation in Hummingbird now so this shouldn't be an issue. It'll also allow us to get around the static sdk issues with environ.
The text was updated successfully, but these errors were encountered:
adam-fowler
changed the title
Use ProcessInfo.processing.environment instead of environ.
Use ProcessInfo.processInfo.environment instead of environ.
Sep 29, 2024
I don't know why, but I've found Foundation ProcessInfo's environment to be not-thread safe at a customer. Maybe that's no longer the case with swift-foundation though.
I had a look through the code and it looks thread safe. It'll be better than using environ where in glibc/darwin it claims to be Sendable but there's a good chance it isn't. It is a char**
We are using Foundation in Hummingbird now so this shouldn't be an issue. It'll also allow us to get around the static sdk issues with
environ
.The text was updated successfully, but these errors were encountered: