[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: PATCH: file:close() return-value for pipes
- From: Richter, Jörg <Joerg.Richter@...>
- Date: Thu, 10 Feb 2011 18:36:05 +0000
From: Roberto Ierusalimschy [roberto@inf.puc-rio.br]
> 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.
I have used shells that exec the last command in a script. Seems useful because you save one fork.
And even if they dont do it you can still call io.popen( "exec cmd" ).
Jörg