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

waldo kitty wkitty42 at windstream.net
Tue Jul 19 20:25:16 CEST 2011


On 7/19/2011 14:14, Sven Barth wrote:
> 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.

sounds like maybe they want "detach" but that won't work if they require to 
interface with the app...




More information about the fpc-pascal mailing list