[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: PATCH: file:close() return-value for pipes
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 10 Feb 2011 15:36:45 -0200
> 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