From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.8 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 6952A1F66E for ; Mon, 31 Aug 2020 14:28:01 +0000 (UTC) Received: from localhost ([::1]:37534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kCkmu-000373-9X for normalperson@yhbt.net; Mon, 31 Aug 2020 10:28:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCkmr-00036u-DG for bug-gnulib@gnu.org; Mon, 31 Aug 2020 10:27:57 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.216]:33733) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCkmp-0008IN-At for bug-gnulib@gnu.org; Mon, 31 Aug 2020 10:27:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1598884071; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=fqD/lpHQYjd/0VE16RrI2hwlBvMwS4SBA0JCPup15fY=; b=X8l+OngHI2/PWj8zzmZicU3ug3irbnsLYjqxsw9Za1tZx2I46GH0ns78H06093rcmT uVACqqvjWp/tZ/I7gvx4nA/3gT644e+ngA5TcXN5aVrBEjRZIVhi7wNvWEJSZIjGY+V8 lDxgszRqtURKd08+lcNdDCugPnoP7Leu0q9w9faFx6bcB06RLM9HVG8ySaPcHGNulqcv 9uDgYmkzfNF2e3s3dd3XBrynVRGEymsa0WQj6qUuy5ykvKx5Huqin+YawEdruAE4rMTg fNTnTtKUI9a7sHEz8EGSzCuP4nOtKkuhZ2+thuOthPYCdMxuZAijhBaCm2i2kfy5nTpz OAGw== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOHqfyyPs=" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 46.10.7 DYNA|AUTH) with ESMTPSA id z05f0fw7VERnpKV (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Mon, 31 Aug 2020 16:27:49 +0200 (CEST) From: Bruno Haible To: bug-gnulib@gnu.org Subject: Re: pid_t on 64-bit Windows Date: Mon, 31 Aug 2020 16:27:48 +0200 Message-ID: <9000458.LPsGitB5CR@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-186-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <1598861594.19486.25.camel@ssi-schaefer.com> References: <5981491.j28A7ECyTM@omega> <1598861594.19486.25.camel@ssi-schaefer.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=81.169.146.216; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/31 10:27:51 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -48 X-Spam_score: -4.9 X-Spam_bar: ---- X-Spam_report: (-4.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-2.13, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Oberzalek Martin Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" 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/