How to spawn processes while keeping the parent process open ?

Tarun Ramakrishna tarun at elankath.com
Mon Apr 4 09:04:21 PDT 2011


Hi Kai,

Thanks. Yes, I came to realize that myself. Since I didn't see a fork
in std.process, I assumed it was different from the POSIX semantics.

Thanks,
Tarun

On Mon, Apr 4, 2011 at 8:32 PM, Kai Meyer <kai at unixlords.com> wrote:
> 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