History

pidfs: get rid of __pidfd_prepare()

Fold it into pidfd_prepare() and rename PIDFD_CLONE to PIDFD_STALE to indicate that the passed pid might not have task linkage and no explicit check for that should be performed.

Christian Brauner committed 1 year ago

Commit a71f4021 parent fd0a1094 files · +44 −65Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/pidfd.h+1−1
@@ -12,7 +12,7 @@ · 11 unmodified lines
12#define PIDFD_THREAD O_EXCL12#define PIDFD_THREAD O_EXCL
13#ifdef __KERNEL__13#ifdef __KERNEL__
14#include <linux/sched.h>14#include <linux/sched.h>
15#define PIDFD_CLONE CLONE_PIDFD15#define PIDFD_STALE CLONE_PIDFD
16#endif16#endif
17 17
18/* Flags for pidfd_send_signal(). */18/* Flags for pidfd_send_signal(). */