diff options
Diffstat (limited to 'src/basic/pidfd-util.c')
-rw-r--r-- | src/basic/pidfd-util.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/basic/pidfd-util.c b/src/basic/pidfd-util.c index 204439e444..c90699d066 100644 --- a/src/basic/pidfd-util.c +++ b/src/basic/pidfd-util.c @@ -24,12 +24,8 @@ static int pidfd_check_pidfs(void) { return have_pidfs; _cleanup_close_ int fd = pidfd_open(getpid_cached(), 0); - if (fd < 0) { - if (ERRNO_IS_NOT_SUPPORTED(errno)) - return (have_pidfs = false); - + if (fd < 0) return -errno; - } return (have_pidfs = fd_is_fs_type(fd, PID_FS_MAGIC)); } |