[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 16:49:42 -0200
> 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" ).
It makes sense. Thanks,
-- Roberto