Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

[Bugfix] Fix failed attempt to open proc files while lacking permission. #1347

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

goddessfreya
Copy link
Contributor

When started in the tty, powerline9k tries to open the stat file of the
login process. Because the login process belongs to root, it's
existence is hidden from non-privileged users. This will result in an
error like
__p9k_detect_terminal:27: no such file or directory: /proc/3434/stat.

Like #1336, this error appears to be ultimately harmless, but never the less annoying.

Signed-off-by: Hal Gentz [email protected]

When started in the tty, powerline9k tries to open the stat file of the
`login` process. Because the `login` process belongs to root, it's
existence is hidden from non-privileged users. This will result in an
error like
`__p9k_detect_terminal:27: no such file or directory: /proc/3434/stat`.

Signed-off-by: Hal Gentz <[email protected]>
@goddessfreya goddessfreya changed the title [Bugfix] Pid fix [Bugfix] Fix failed attempt to open proc files while lacking permission. Jul 31, 2019
@goddessfreya
Copy link
Contributor Author

ping @dritter

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant