Re: [RFC-2 PATCH 4/4] samples: show race-free pidfd metadata access

2019-04-10 Thread Daniel Colascione
Thanks for providing this example. A new nits below. On Wed, Apr 10, 2019 at 4:43 PM Christian Brauner wrote: > > This is an sample program to show userspace how to get race-free access to > process metadata from a pidfd. > It is really not that difficult and instead of burdening the kernel with

[RFC-2 PATCH 4/4] samples: show race-free pidfd metadata access

2019-04-10 Thread Christian Brauner
This is an sample program to show userspace how to get race-free access to process metadata from a pidfd. It is really not that difficult and instead of burdening the kernel with this task by using fds to /proc/ we can simply add a helper to libc that does it for the user. Signed-off-by: Christian