29 Nov
2023
29 Nov
'23
1 a.m.
On Tue Nov 28 23:08:57 2023 +0000, Chip Davis wrote:
It is on Mac OS, where `fork(2)` doesn't play too well with many system frameworks. `fork()` is particularly slow on macOS, this is negligible for a single prefix but adds up for an app like CrossOver which is managing many bottles and starting them to retrieve settings, etc.
Also I hadn't considered it, but Chip's point is a good one when Wine is running inside a Mac Cocoa app (like CrossOver's launchers). The error handling and many calls to `posix_spawn()` do complicate the code, I'll see if it would be simpler to pre-generate the possible `wineserver` paths and then loop through them until one succeeds. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4468#note_54188