[Rpm-maint] [rpm-software-management/rpm] Please add stdin support for `rpmspec -P` (Issue #1926)

Demi Marie Obenour notifications at github.com
Tue Feb 22 17:26:27 UTC 2022


> > > I think `/dev/stdin` only works with a shell. It doesn't work if you execv(). At least I get `error: Unable to open /dev/stdin: No such device or address`
> > 
> > 
> > On what operating system? On Linux that might happen if stdin is a socket.
> 
> On Linux (Fedora), where `/dev/stdin` is a symlink to `/proc/self/fd/0`

Interesting.  I would need to see your program to know for sure, but my guess is that fd 0 is a socket at the time of `execve()`, which would cause this error.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1926#issuecomment-1048035496
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/1926/1048035496 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220222/009c932e/attachment.html>


More information about the Rpm-maint mailing list