summaryrefslogtreecommitdiffstats
path: root/src/basic/pidref.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic/pidref.c')
-rw-r--r--src/basic/pidref.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/pidref.c b/src/basic/pidref.c
index bc3e96f426..a275f77b56 100644
--- a/src/basic/pidref.c
+++ b/src/basic/pidref.c
@@ -84,8 +84,8 @@ int pidref_set_pid(PidRef *pidref, pid_t pid) {
fd = pidfd_open(pid, 0);
if (fd < 0) {
- /* Graceful fallback in case the kernel doesn't support pidfds or is out of fds */
- if (!ERRNO_IS_NOT_SUPPORTED(errno) && !ERRNO_IS_PRIVILEGE(errno) && !ERRNO_IS_RESOURCE(errno))
+ /* Graceful fallback in case the kernel is out of fds */
+ if (!ERRNO_IS_RESOURCE(errno))
return log_debug_errno(errno, "Failed to open pidfd for pid " PID_FMT ": %m", pid);
fd = -EBADF;