[fpc-pascal] Re: Linux: How to execute a program, but not to wait until finishes

Sven Barth pascaldragon at googlemail.com
Tue Jul 19 20:14:25 CEST 2011

On 19.07.2011 16:52, fred f wrote:
> Hi,
> use this code, which starts itself, but when you close first started
> the second ends as well, what I don't want.
>    with TProcess.Create (Application) do begin
>      CommandLine := Application.ExeName + '&';
>      Execute;
>      Free;
>    end;

If I remember correctly this is simply the way Unix behaves. If the 
parent process terminates all children are terminated as well. I don't 
know how one can circumvent this.


More information about the fpc-pascal mailing list