Infinite loop not working DMD2
    Guillermo Estrada 
    phrzn at live.com
       
    Thu Jun  2 09:14:26 PDT 2011
    
    
  
== Quote from Ali Çehreli (acehreli at yahoo.com)'s article
> On 06/02/2011 08:51 AM, Guillermo Estrada wrote:
> >> The exec* family of functions cause the new app to replace the
> > current process.  So after the execv, the loop doesn't exist.
> >
> > Any way to spawn the process without killing himself?
> Would std.process.system or std.process.shell work?
> Ali
Well, std.process.system does not wok as intended because if you
kill the parent process all children die. std.process.shell works
and does what it should but spawning a cmd on each request, for a
dirty quick fork bomb well, it's the same, but there should be a way
in phobos to spawn process and detach them or even have control over
them and close them like in tango.sys.Process, without having to go
to the std.c.* libs. Thnx for the help :D
    
    
More information about the Digitalmars-d-learn
mailing list