Re: [WEKA] Calling fork() and D runtime

2017-05-21 Thread via Digitalmars-d
On Monday, 15 May 2017 at 11:33:29 UTC, Jonathan Shamir wrote: Hey, This is my first time writing in the D forums! I have an application written in D that runs as a linux daemon (some python service script is in charge of running and daemonizing it). This "agent" works similar to docker - a s

Re: [WEKA] Calling fork() and D runtime

2017-05-16 Thread Kagamin via Digitalmars-d
D runtime is incompatible with fork, enforce and catch won't work in the child process after fork, stick with betterC style.

Re: [WEKA] Calling fork() and D runtime

2017-05-15 Thread Jonathan Shamir via Digitalmars-d
OK well, seems like calling _exit() (instead of exit()) did the trick. Thanks for the help!

Re: [WEKA] Calling fork() and D runtime

2017-05-15 Thread Daniel Kozak via Digitalmars-d
This is how I use fork on one of my project http://gitlab.eurosat.cz/ekj/esatd/raw/master/source/app.d On Mon, May 15, 2017 at 1:33 PM, Jonathan Shamir via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > Hey, > > This is my first time writing in the D forums! > > I have an application writt

[WEKA] Calling fork() and D runtime

2017-05-15 Thread Jonathan Shamir via Digitalmars-d
Hey, This is my first time writing in the D forums! I have an application written in D that runs as a linux daemon (some python service script is in charge of running and daemonizing it). This "agent" works similar to docker - a service that accepts commands and runs in the background, and st