Treat EACCES for pid_running() as alive

When the user has some sort of hardening going on, we might not be able
to read the Wine process's memory. In that case this check would return
`false` even though the process is still running. To combat this, we
should explicitly check for `EINVAL` which is returned when the file
doesn't exist at all or when it's a broken 'symlink' (even though it
isn't really a symlink).
This commit is contained in:
Robbert van der Helm
2021-07-18 14:49:57 +02:00
parent 4fc683188b
commit d99f571c05
2 changed files with 14 additions and 4 deletions
+5
View File
@@ -10,6 +10,11 @@ Versioning](https://semver.org/spec/v2.0.0.html).
### Fixed
- Fixed the process status detection treating a process as dead when the user
doesn't have permissions to access the child process's memory. This fixes a
seemingly very rare regression from yabridge 3.4.0 where the Wine plugin host
application would immediately be seen as dead when using AppArmor, preventing
yabridge from starting.
- Fixed a regression from yabridge 3.4.0 where plugins with zero audio channels
like FrozenPlain **Obelisk** would result in a crash.
- Fixed a regression from yabridge 3.4.0 where JUCE-based VST3 plugins might