lua-users home
lua-l archive

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


Viacheslav Usov <via.usov@gmail.com> wrote:
> Ah, thanks. So technically this works as documented. But then the
> standard output cannot be closed. Something is not right here.

I’m not sure I follow, but I’ve always understood closing stdout to be
a bad idea (TM). Instead, the norm is to (temporarily) redirect stdout to
/dev/null or the like.

To put that another way, why do you want to close stdout?

P
-- 
We have not been faced with the need to satisfy someone else's
requirements, and for this freedom we are grateful.
    Dennis Ritchie and Ken Thompson, The UNIX Time-Sharing System