Skip to content
Unverified Commit bee19cd8 authored by Dmitry V. Levin's avatar Dmitry V. Levin Committed by Christian Brauner
Browse files

samples: make pidfd-metadata fail gracefully on older kernels



Initialize pidfd to an invalid descriptor, to fail gracefully on
those kernels that do not implement CLONE_PIDFD and leave pidfd
unchanged.

Signed-off-by: default avatarDmitry V. Levin <ldv@altlinux.org>
Signed-off-by: default avatarChristian Brauner <christian@brauner.io>
parent 9014143b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment