lua-users home
lua-l archive

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

> Assuming these are file descriptors created with or io.popen then they
> have C-library FILE* objects backing them.  These can hold writes in memory
> until they need to be flushed, are flushed explicitly, or are closed with
> fclose().  No amount of kernel-based cleanup will help with that :-)

The C library takes care of that:

man exit:
> exit - cause normal process termination
>        [...]
>        All open stdio(3) streams are flushed and closed.
>        [...]

-- Roberto