[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9020961b9cb4ebc61d6a07f603a226aa@sk2.org>
Date: Wed, 09 Dec 2020 10:43:16 +0100
From: Stephen Kitt <steve@....org>
To: "Michael Kerrisk (man-pages)" <mtk.manpages@...il.com>,
Christian Brauner <christian.brauner@...ntu.com>
Cc: linux-man <linux-man@...r.kernel.org>,
Alejandro Colomar <alx.manpages@...il.com>,
lkml <linux-kernel@...r.kernel.org>
Subject: Re: [patch] close_range.2: new page documenting close_range(2)
Le 09/12/2020 10:40, Christian Brauner a écrit :
> On Wed, Dec 09, 2020 at 09:50:38AM +0100, Michael Kerrisk (man-pages)
> wrote:
>> > +.PP
>> > +.I flags
>> > +can be set to
>> > +.B CLOSE_RANGE_UNSHARE
>> > +to unshare the range of file descriptors from any other processes,
>> > +.I instead
>> > +of closing them.
>>
>> Really "instead of closing them"? I had supposed that rather that this
>> should be "before closing them". That's also how the kernel code reads
>> to me, from a quick glance.
>
> It's also mentioned in the commit message. Basically setting
> CLOSE_RANGE_UNSHARE is equivalent to:
>
> unshare(CLONE_FILES);
> close_range(<start>, <end>);
Yes, I got that mixed up, thanks for the clarification! I'll send a v2
addressing the review comments later today.
Regards,
Stephen
Powered by blists - more mailing lists