Re: [RFC][PATCH] scripts with stdin replaced

Marcin 'Qrczak' Kowalczyk (qrczak@knm.org.pl)
Sat, 3 Jul 1999 15:52:34 +0200


Na linux-kernel piszesz:

> The following patch extends binfmt_misc to substitute stdin
> of the wrapper with the to be executed binary.

Wouldn't be better to open it on a different descriptor and pass
/dev/fd/<something> (or /proc/<pid>/fd/<something> - BTW, which one is
preferred to use?) as the argument? I think that some Unices do that.

-- 
 __("<    Marcin Kowalczyk * qrczak@knm.org.pl http://kki.net.pl/qrczak/
 \__/          GCS/M d- s+:-- a22 C+++>+++$ UL++>++++$ P+++ L++>++++$ E-
  ^^                W++ N+++ o? K? w(---) O? M- V? PS-- PE++ Y? PGP->+ t
QRCZAK                  5? X- R tv-- b+>++ DI D- G+ e>++++ h! r--%>++ y-

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/