Windows command line and execv

Nick Sabalausky a at a.a
Fri Aug 20 12:55:18 PDT 2010


"Nick Sabalausky" <a at a.a> wrote in message 
news:i4mmg2$a1i$1 at digitalmars.com...
> "Kagamin" <spam at here.lot> wrote in message 
> news:i4mif8$2p1r$1 at digitalmars.com...
>> Kagamin Wrote:
>>
>>> > > Is execv known to
>>> > > trick the windows command-line into giving control back to the user?
>>> > Ok that seems to be the case. See the attached screenshot. But it 
>>> > works fine
>>> > on Linux though (assuming you add the proper "./", of course).
>>>
>>> Looks like execv doesn't wait for application exit.
>>
>> Try to sleep after execv.
>
> execv always replaces the current process with the new one, so it never 
> returns.

(Contrary to phobos docs: 
http://d.puremagic.com/issues/show_bug.cgi?id=3158 ) 




More information about the Digitalmars-d mailing list