[fpc-pascal] TProcess execution
Micha Nelissen
micha at neli.hopto.org
Thu Feb 9 07:48:10 CET 2006
Michael Van Canneyt wrote:
>
> On Wed, 8 Feb 2006, Micha Nelissen wrote:
>
>> How can I know whether a TProcess failed when trying to execute it ?
>> Running will be false, but I want to distinguish between the file not
>> there / no execution permission / etc. and it started running but was done
>> quickly.
>
> It should raise an exception if execution fails ?
That I should have noticed :-). In unix, the return result of the
'fpexecve' call is not checked, at least. If it returns, it does
'halt(127)', so should I check the ExitStatus being 127 ?
Micha
More information about the fpc-pascal
mailing list