[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Bidirectional io.open()...anyone got one?
- From: Rici Lake <lua@...>
- Date: Fri, 6 Jul 2007 22:14:07 -0500
On 6-Jul-07, at 9:32 PM, Javier Guerra Giraldez wrote:
Forgive my ignorance, but why do you need two pipes...in other words,
i don't know how hard would it be to make os.spawn accept a socket and
use it for both stdin and stdout...
There is an argument that it's easier to deal with unidirectional
pipes because you can close one without closing the other one.
Of course, you can use shutdown() on sockets, but close() works