Date: Tue, 1 Jun 2021 14:32:19 +0200 From: Martin Husemann <mar...@duskware.de> Message-ID: <20210601123219.ga16...@mail.duskware.de>
| Good idea - and raise an upstream issue pointing at the non-portable | procfs assumption. And while doing that, ask them what they're possibly trying to achieve with the O_CREAT flag - if /proc/$$/fd/N doesn't exist, how is creating (what would be a normal file, if procfs allowed it) going to possibly do anything useful? It is hard to believe that they're intending that creating a file there will magically cause the fd to open (open to what underlying object?) If they know the fd is open (which they seem to do here) then they know that /proc/$$/fd/N already exists, in which case O_CREAT is useless (in the best of cases). kre