# Re: \[PATCH v2 0/5\] pid: add pidfd\_open()

- From: Linus Torvalds \<torvalds@linux-foundation.org\>
- Date: 2019-03-30 16:09:30 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2019/03/5555624
- Thread: https://ratatoskr.run/linux-api/2019/03/5554749/t.md

```text
On Fri, Mar 29, 2019 at 8:54 AM Christian Brauner [ref] wrote:
>
> /* Introduction */
> This adds the pidfd_open() syscall.
> pidfd_open() allows to retrieve file descriptors for a given pid. This
> includes both file descriptors for processes and file descriptors for
> threads.

I'm ok with the pidfd_open() call to just get a pidfd, but that
"pidfd_to_profs()" needs to go away.

If you want to open the /proc/<pid>/status file, then just do that.
This whole "do one and convert to the other" needs to die. No, no, no.

                   Linus
```
