Skip to content

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
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.

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

2 participants