How to spawn processes while keeping the parent process open ?

Kai Meyer kai at unixlords.com
Mon Apr 4 08:02:20 PDT 2011


On 04/03/2011 07:31 AM, Tarun Ramakrishna wrote:
> Hi,
>
> Apparently std.process.exec (D2.052/windows) doesn't work the way the
> documentation describes. It terminates the parent process. Is there a
> way to keep the parent process open in D ? I also vaguely remember
> seeing some mails on this list about an improved process library in D.
>
> Any tips appreciated,
> Thanks,
> Tarun

I think exec is meant to replace the current running process with the 
new one. I think the one you want is either "shell" or "system".
http://www.digitalmars.com/d/2.0/phobos/std_process.html


More information about the Digitalmars-d-learn mailing list