Skip to content
Unverified Commit ca7707f5 authored by Christian Brauner's avatar Christian Brauner
Browse files

fork: use pidfd_prepare()



Stop open-coding get_unused_fd_flags() and anon_inode_getfile(). That's
brittle just for keeping the flags between both calls in sync. Use the
dedicated helper.

Message-Id: <20230327-pidfd-file-api-v1-2-5c0e9a3158e4@kernel.org>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 6ae930d9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment