Andrei Alexandrescu Wrote:

> > Try to sleep after execv.
> 
> I think a form of join/wait is more appropriate.

That should be done inside execv.
If one wants to join in user code, execv should return a waitable handle.

Hmm msdn says it works in posix way. The problem seems to be cmd waits on 
parent process and when parent exits, cmd prints command prompt, but child is 
still running.

Reply via email to