lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On 6-Jul-07, at 9:32 PM, Javier Guerra Giraldez wrote:

Duck 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
pretty uniformly.