bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pid_t on 64-bit Windows


From: Bruno Haible
Subject: Re: pid_t on 64-bit Windows
Date: Mon, 31 Aug 2020 16:27:48 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-186-generic; KDE/5.18.0; x86_64; ; )

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

[Prev in Thread] Current Thread [Next in Thread]