Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

gamemodelist: Fix unreadable process maps #463

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

ReillyBrogan
Copy link
Contributor

Systemd commit bf1b9ae487b65b1cb1639b222724fab95e508cf5 (present in Systemd v254 and later) effectively broke gamemodelist as the process map for the systemd --user process became unreadable. After this change gamemodelist would exit with an error like the following:

awk: fatal: cannot open file `/proc/2281/maps' for reading: Permission denied

To work around this let's add a hook to the awk statement to skip any files that can't be read.

Closes #456

Systemd commit [bf1b9ae487b65b1cb1639b222724fab95e508cf5](systemd/systemd@bf1b9ae) (present in Systemd v254 and later) effectively broke gamemodelist as the process map for the `systemd --user` process became unreadable. After this change gamemodelist would exit with an error like the following:

```
awk: fatal: cannot open file `/proc/2281/maps' for reading: Permission denied
```

To work around this let's add a hook to the awk statement to skip any files that can't be read.

Closes FeralInteractive#456
@afayaz-feral afayaz-feral merged commit 9646f2b into FeralInteractive:master Mar 27, 2024
@ReillyBrogan ReillyBrogan deleted the fix-systemd-user branch August 19, 2024 14:59
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gamemodelist fails trying to open file /proc/*/maps for process systemd --user
2 participants