[fpc-pascal] TProcess execution

Michael Van Canneyt michael at freepascal.org
Thu Feb 9 16:53:50 CET 2006



On Thu, 9 Feb 2006, Micha Nelissen wrote:

> On Thu, 9 Feb 2006 08:42:21 +0100
> Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>
>> 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.
>
> This is not true btw: you can use shared memory. Set up a variable in the
> parent process so the child process knows where to write what happened plus
> error codes. Don't know how difficult it is to do in fpc though, but I
> guess it's just as "simple" as in C using fpmmap and friends ?

That seems a bit excessive for error reporting.

Michael.



More information about the fpc-pascal mailing list