Jonas Maebe wrote:

On 9 feb 2006, at 07:48, Micha Nelissen wrote:

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 ?

The reason is that because of the fork/vfork construct these OS'es use, there is no way to report an error to the parent process except by exit codes.

But how about windows ? I see it raises an exception, so that's the origin of Michael's reply I guess. This makes TProcess non-uniform cross-platform :-(. Can it be improved ? Either have a documented 127 exitcode (for windows too), or raise an exception in unix for exitcode 127 ?

Micha

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to