Hi Martin,

Your email is hardly readable, because
  1. it is a HTML email,
  2. when viewing it as plain text - which is the only secure way to read mail
     [1] - the cited text is not indented.
Please configure your mailer for plain-text mail [2], if you want to continue
to write to mailing lists. And indent or otherwise mark cited text.


> _spawnvp(), or _wspawnvp() are not returning a pid. It is a process handle.

No one claimed that _spawnvp() is returning a pid.

>         intptr_t ret = _spawnvp( _P_NOWAIT, argv[2], args );
>         DWORD pid = GetProcessId( (HANDLE)ret );
>         printf( "ret: %d pid: %d\n", (int)ret, (int)pid );

What does this program print?

And this program proves nothing, because you cast away the upper 32 bits
of 'ret' before printing.

Bruno

[1] 
https://www.scientificamerican.com/article/the-only-safe-e-mail-is-text-only-e-mail/
[2] https://useplaintext.email/


Reply via email to