Windows command line and execv
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Fri Aug 20 11:54:58 PDT 2010
On 08/20/2010 01:44 PM, Kagamin wrote:
> 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.
I think a form of join/wait is more appropriate.
Andrei
More information about the Digitalmars-d
mailing list