X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=fDPuXzkyf0xZhZq5mIH3HiTWHiRqaz9vp3xRm+uXM1YnGxY8kZ+Xs x64MF1FhfQCv+cEKalXK1LKbdUWQ1NZQK/Asq2tSkgaziWdE48AMOHYyKJ2vFpLA oxm8TKegQnzJFlgJf3HT2vkSBtcDZSVk8vSOfajgL7pRCoiZn1hNfE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=scLVnX6FHUOopp47XxNvybwuUjo=; b=CbNdfyKwb4nShsovWImVDn629k1r YOHyG8kxHjnRnJHKbFNCEzWO6MKcXx8gVY+ORydYvHnodgKul3H1glUMePIlt5FP +2bQ+vyXVEkhGi3rTBl17l0xjgh4qtCAIWgjWfqZXoWys7yO8w9+L0cDzTYDGuqO xbQCV+HVTzpH2kA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-101.5 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=1930, H*F:D*cygwin.com X-HELO: mout.kundenserver.de Date: Mon, 19 Aug 2019 16:00:40 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: [ANNOUNCEMENT] TEST: Cygwin 3.1.0-0.2 Message-ID: <20190819140040.GM11632@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20190819214907 DOT 05466c00d626590591e30c79 AT nifty DOT ne DOT jp> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="lgDpGT5NbMPMciux" Content-Disposition: inline In-Reply-To: <20190819214907.05466c00d626590591e30c79@nifty.ne.jp> User-Agent: Mutt/1.11.3 (2019-02-01) --lgDpGT5NbMPMciux Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Aug 19 21:49, Takashi Yano wrote: > Hi Corinna, >=20 > On Mon, 19 Aug 2019 12:39:56 +0200 > Corinna Vinschen wrote: > > I uploaded a new Cygwin test release 3.1.0-0.2 >=20 > I tested it in a short time and confirmed the bugs I reported recently > have been fixed. Thanks for testing! > One small thing I found is as follows. >=20 > Result of "ps | cat" in recent cygwin including this test release: > $ ps | cat > PID PPID PGID WINPID TTY UID STIME COMMAND > 1930 1929 1930 7940 pty0 197609 21:32:53 /usr/bin/= bash > 1942 1930 1941 6612 pty0 197609 21:33:14 /usr/bin/= bash > 1941 1930 1941 1900 pty0 197609 21:33:14 /usr/bin/= ps > 1929 1 1929 6644 ? 197609 21:32:53 /usr/bin/= mintty >=20 > Expected result: > $ ps | cat > PID PPID PGID WINPID TTY UID STIME COMMAND > 1930 1929 1930 7940 pty0 197609 21:32:53 /usr/bin/= bash > 1942 1930 1941 6612 pty0 197609 21:33:14 /usr/bin/= cat > 1941 1930 1941 1900 pty0 197609 21:33:14 /usr/bin/= ps > 1929 1 1929 6644 ? 197609 21:32:53 /usr/bin/= mintty As far as I can tell this is not a bug. I added debug output and found that ps grabs the process list *before* bash execve's into cat. So at the time ps gets the process list, process 1942 in your example is actually still bash. If you call procps, which is slower than Cygwin's own ps, you tend to see cat more often in this scenario. Corinna --=20 Corinna Vinschen Cygwin Maintainer --lgDpGT5NbMPMciux Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl1aq4gACgkQ9TYGna5E T6AoTQ//TJv4jb6d6kgLsgULuCv1SVF0nPACZcZ71HCbjVVC/HZiLr6hfHG9TXXi 7p5zehlPlYBCwiaWCo2d/RtQOmHtxveH4aK5UD8Z1ackmc4a6fsP1oroQYlOwFXg a0drZqFf+tHR40QUsGF9+6CleehLUsSkAjaFxoC5tNCKYgBOfCWASLlInMia3fG5 sWE1dCHoCRfp7YWYzzkO2uvam1tkm8Szc8GTXziwHcoJDFXCalnqaxzjQw2jx+v4 AuUFil993UxWuk83MaqY0bjTN/Ue/9p+xnaN48ZJgztiz9+D0oA/v3jrwaP+pJom ar8rRnDljAt5pa4Y0ETa11y9YwcAJGxONp75UwjN7Hp91rc0anQQDq3FoHC2NH09 5+P1u75q6VBMjSQ7dsCYpSVt2b7TDTeuSoe3txdTEF7/Am3uu7ADIbEifOz3O0Zl X8iRVZH0oKFW+ZGNhriqW5THi9uFGTYZc/m7ZlJw+OcjuBvOaZ88uLA8TRGLeIx8 KTS7gZIN6SGlhMrY5muWLP55GNqXsqRle9nwYwd2F3Whq7VGSdIEQdYYPkC0hbD8 8Zh5OuOTjGNUO8jI2VenbfIsZUPzDvN5f66oON/CsWD//qXk/ChTIiy5nHK3Z9wI kkXHTw/jiISAezWaK3kpwXleJIk0JMhr6KVFT+fRsutzBmkwQnQ= =RZQl -----END PGP SIGNATURE----- --lgDpGT5NbMPMciux--