bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
From: Bruno Haible <bruno@clisp.org>
To: bug-gnulib@gnu.org
Cc: Oberzalek Martin <Martin.Oberzalek@ssi-schaefer.com>
Subject: Re: pid_t on 64-bit Windows
Date: Mon, 31 Aug 2020 16:27:48 +0200	[thread overview]
Message-ID: <9000458.LPsGitB5CR@omega> (raw)
In-Reply-To: <1598861594.19486.25.camel@ssi-schaefer.com>

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	other threads:[~2020-08-31 14:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-23 23:30 pid_t on 64-bit Windows Bruno Haible
2020-08-31  8:13 ` Oberzalek Martin
2020-08-31 14:27   ` Bruno Haible [this message]
2020-09-01  1:11     ` Martin Oberzalek
2020-09-01 10:25       ` Bruno Haible
2020-08-31 11:15 ` Oberzalek Martin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9000458.LPsGitB5CR@omega \
    --to=bruno@clisp.org \
    --cc=Martin.Oberzalek@ssi-schaefer.com \
    --cc=bug-gnulib@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).