diff options
author | Nikita Radchenko <nradchenko@protonmail.com> | 2021-10-05 21:13:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-05 20:13:38 +0200 |
commit | 741c143ea371ef3ecf83254341f443182a9547f1 (patch) | |
tree | aca975864e0b03b110af3f59b0d2f65ea6730cc2 /CREDITS | |
parent | e15922b9f7f389679c73ab15ab5ac237b7c0d37f (diff) | |
download | psutil-741c143ea371ef3ecf83254341f443182a9547f1.tar.gz |
Handle ENAMETOOLONG on Linux (#1940) (#1955)
When resolving process file descriptors symlinks in procfs (/proc/PID/fd/FD),
the kernel can only deal with file paths no longer than PAGE_SIZE
(which usually equals to PATH_MAX).
https://elixir.bootlin.com/linux/v5.12/source/fs/proc/base.c#L1759
Resolving fd symlink that corresponds to a file with a path longer
than PATH_MAX with readlink(2) would result in ENAMETOOLONG error
(see details in #1940).
We can do nothing to fix this in userspace; therefore these errors
should be ignored.
Diffstat (limited to 'CREDITS')
-rw-r--r-- | CREDITS | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -745,6 +745,10 @@ N: David Knaack W: https://github.com/davidkna I: 1921 +N: Nikita Radchenko +W: https://github.com/nradchenko +I: 1940 + N: MaWe2019 W: https://github.com/MaWe2019 I: 1953 @@ -761,4 +765,4 @@ I: 1598 N: Xuehai Pan W: https://github.com/XuehaiPan -I: 1948 +I: 1948
\ No newline at end of file |