digitalmars.D.learn - How to spawn processes while keeping the parent process open ?
- Tarun Ramakrishna (8/8) Apr 03 2011 Hi,
- Kai Meyer (4/12) Apr 04 2011 I think exec is meant to replace the current running process with the
- Tarun Ramakrishna (6/21) Apr 04 2011 Hi Kai,
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
Apr 03 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, TarunI 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
Apr 04 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 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, TarunI 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
Apr 04 2011