lua-users home
lua-l archive

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


> This is really two changes, one which fixes the just-plain-wrong behavior of
> the return-value of file:close() when called on a pipe on Linux (and
> presumably also other posix platforms) [this is the more important of the
> two], and the addition of a second return-value to the API, indicating the
> type of exit of the child process.  I wrapped the two into the same patch as
> I consider them to be tightly related.

Is this second returned value any useful? Even if the child process
running the command terminates with a signal, the shell running it will
terminate normally, and that will be the status returned by pclose.
It seems that almost always the type of exit will a "normal" exit.

-- Roberto