lua-users home
lua-l archive

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


El jue, 02-09-2004 a las 19:19, Rob Kendrick escribió:

> [...] What's wrong with just having another flag in the 
> userdata to say it's a popen, rather than guessing when you call close(), I 
> don't know.

That's the way to fix the problem, instead of relying in
implementation-specific behaviour of fclose/pclose. If popen has to live
in the standard IO library, this fix should be done.

I have found io.popen to be very useful, too.

-ap