[fpc-devel] Tprocess using pipes, handle = 0

Martin Frb lazarus at mfriebe.de
Tue Mar 17 21:32:30 CET 2015


On 16/03/2015 22:03, Martin Frb wrote:
>
> Further debugging was done, and the value of
>     FDbgProcess.FOutputStream.FHandle
> was inspected immediately after
>    TProcess.Execute
>
> It was zero already.
> It is my understanding (from browsing the code), that if 
> TProcess.Execute is succesful, the handle will be set after it returns.
>
> So if all reports I got are correct, then it looks like an issue in 
> TProcess.Execute.

Just a quick question:

is 0 (zero) an invalid handle (on linux)?

Or could an Handle (active/all ok) be 0?



More information about the fpc-devel mailing list