|
Message-ID: <cff701355849519f2d071551caa86a32@ispras.ru> Date: Thu, 18 Aug 2022 17:54:50 +0300 From: Alexey Izbyshev <izbyshev@...ras.ru> To: musl@...ts.openwall.com Cc: Guilherme Janczak <guilherme.janczak@...dex.com> Subject: Re: [PATCH] add close_range() syscall wrapper On 2022-08-18 17:42, James Y Knight wrote: > On Thu, Aug 18, 2022 at 6:40 AM Alexey Izbyshev <izbyshev@...ras.ru> > wrote: > >> Glibc doesn't implement a fallback and explicitly says it in the >> manual. >> Using a different implementation in musl seems undesirable. > > True. I would note, however, that glibc also implements another > function "closefrom", which first calls close_range, and if it fails, > falls back to iterating /proc/self/fd. Yes, but glibc's closefrom() *aborts* if there is no /proc, so it's not suitable for all use cases (and would not be suitable for CPython's subprocess or "os.closerange()", for instance). Alexey
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.