Re: [RFC PATCH 0/3] introduce PIDFD_SELF

2024-10-01 Thread Christian Brauner
On Mon, Sep 30, 2024 at 03:32:25PM GMT, Lorenzo Stoakes wrote: > On Mon, Sep 30, 2024 at 04:21:23PM GMT, Aleksa Sarai wrote: > > On 2024-09-30, Lorenzo Stoakes wrote: > > > On Mon, Sep 30, 2024 at 02:34:33PM GMT, Christian Brauner wrote: > > > > On Mon, Sep 30, 2024 at 11:39:49AM GMT, Lorenzo Stoa

Re: [RFC PATCH 0/3] introduce PIDFD_SELF

2024-10-01 Thread Lorenzo Stoakes
On Tue, Oct 01, 2024 at 12:21:32PM GMT, Christian Brauner wrote: > On Mon, Sep 30, 2024 at 03:32:25PM GMT, Lorenzo Stoakes wrote: > > On Mon, Sep 30, 2024 at 04:21:23PM GMT, Aleksa Sarai wrote: [snip] > > > Sorry to bike-shed, but to match /proc/self and /proc/thread-self, maybe > > > they should

Re: [RFC PATCH 0/3] introduce PIDFD_SELF

2024-09-30 Thread Lorenzo Stoakes
On Mon, Sep 30, 2024 at 04:21:23PM GMT, Aleksa Sarai wrote: > On 2024-09-30, Lorenzo Stoakes wrote: > > On Mon, Sep 30, 2024 at 02:34:33PM GMT, Christian Brauner wrote: > > > On Mon, Sep 30, 2024 at 11:39:49AM GMT, Lorenzo Stoakes wrote: > > > > On Mon, Sep 30, 2024 at 12:33:18PM GMT, Florian Weim

Re: [RFC PATCH 0/3] introduce PIDFD_SELF

2024-09-30 Thread Aleksa Sarai
On 2024-09-30, Lorenzo Stoakes wrote: > On Mon, Sep 30, 2024 at 02:34:33PM GMT, Christian Brauner wrote: > > On Mon, Sep 30, 2024 at 11:39:49AM GMT, Lorenzo Stoakes wrote: > > > On Mon, Sep 30, 2024 at 12:33:18PM GMT, Florian Weimer wrote: > > > > * Lorenzo Stoakes: > > > > > > > > > If you wish t

Re: [RFC PATCH 0/3] introduce PIDFD_SELF

2024-09-30 Thread Lorenzo Stoakes
On Mon, Sep 30, 2024 at 02:34:33PM GMT, Christian Brauner wrote: > On Mon, Sep 30, 2024 at 11:39:49AM GMT, Lorenzo Stoakes wrote: > > On Mon, Sep 30, 2024 at 12:33:18PM GMT, Florian Weimer wrote: > > > * Lorenzo Stoakes: > > > > > > > If you wish to utilise a pidfd interface to refer to the current

Re: [RFC PATCH 0/3] introduce PIDFD_SELF

2024-09-30 Thread Christian Brauner
On Mon, Sep 30, 2024 at 11:39:49AM GMT, Lorenzo Stoakes wrote: > On Mon, Sep 30, 2024 at 12:33:18PM GMT, Florian Weimer wrote: > > * Lorenzo Stoakes: > > > > > If you wish to utilise a pidfd interface to refer to the current process > > > (from the point of view of userland - from the kernel point

Re: [RFC PATCH 0/3] introduce PIDFD_SELF

2024-09-30 Thread Lorenzo Stoakes
On Mon, Sep 30, 2024 at 12:33:18PM GMT, Florian Weimer wrote: > * Lorenzo Stoakes: > > > If you wish to utilise a pidfd interface to refer to the current process > > (from the point of view of userland - from the kernel point of view - the > > thread group leader), it is rather cumbersome, requirin

Re: [RFC PATCH 0/3] introduce PIDFD_SELF

2024-09-30 Thread Florian Weimer
* Lorenzo Stoakes: > If you wish to utilise a pidfd interface to refer to the current process > (from the point of view of userland - from the kernel point of view - the > thread group leader), it is rather cumbersome, requiring something like: > > int pidfd = pidfd_open(getpid(), 0); > >