From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20844 invoked by alias); 19 Aug 2019 15:20:36 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 20823 invoked by uid 89); 19 Aug 2019 15:20:36 -0000 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=H*F:D*cygwin.com X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.17.24) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 19 Aug 2019 15:20:35 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MGA0o-1i2y442ptk-00GdR9 for ; Mon, 19 Aug 2019 17:20:32 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 21EF6A80690; Mon, 19 Aug 2019 17:20:32 +0200 (CEST) Date: Mon, 19 Aug 2019 16:50:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] TEST: Cygwin 3.1.0-0.2 Message-ID: <20190819152032.GP11632@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20190819214907.05466c00d626590591e30c79@nifty.ne.jp> <20190819140040.GM11632@calimero.vinschen.de> <20190820000345.e8554f7f2516f399b468b2fb@nifty.ne.jp> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="PXvue2YBBX9xEiHS" Content-Disposition: inline In-Reply-To: <20190820000345.e8554f7f2516f399b468b2fb@nifty.ne.jp> User-Agent: Mutt/1.11.3 (2019-02-01) X-SW-Source: 2019-08/txt/msg00285.txt.bz2 --PXvue2YBBX9xEiHS Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 727 On Aug 20 00:03, Takashi Yano wrote: > On Mon, 19 Aug 2019 16:00:40 +0200 > Corinna Vinschen wrote: > > 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. > >=20 > > If you call procps, which is slower than Cygwin's own ps, you tend > > to see cat more often in this scenario. >=20 > Sounds reasonable. I wonder why this does not occur in linux... It's way faster? Consider that in Cygwin the "task switch" is not performed by the OS, but basically by exec'ing and exec'd process. Corinna --=20 Corinna Vinschen Cygwin Maintainer --PXvue2YBBX9xEiHS Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl1avj8ACgkQ9TYGna5E T6A3Rw/+IPudWOrzkMXb0pCpJ/A2yBbzxzeaKf6mhA/BCH9iuCRCw0MpqPbZMZMC 6r19oC/fZffnocDOd+W5GJkTg7yJ7XfcZ+y4mSXbgfajeBhQiYmcr8qTWbgcxhAW f6M6QylyKFb1bjj8SysS5gEdQiXJBNuAYawAaYt/hEarIJPaTC17R1cH3YmqgRlg 2yBbvrct5J88bfIVRgTQnp2mK52IgxS37vGwuk7DP7fOVZkubcLt+imnFDQpPj/s K600vntJsjiEgooxQfkwvE+iTLdFNEEDXzRcgtOI7ug4Pk218y9JEwg5sCCd8t8+ XrB/hyMmYfRZGzjC2QkqVN+GYERrcUiP/l4jH46skOcgqlt8xZIWJvibPObzCRlc yQF219Dn5rgiEK71xu3C5KsNq4a3ELbuL/w2fUOwrDiO5EyUbbWnB58lpVqRwfGp NbIiIDpCqymFzh76olUhxy7g/+OLPSE5q0G9LmgQ1BI7Vff+qmHjWOQOo0QalLuu FhOGwNH/XT9yk4uFr7nYFSv5WYVb7Jq6Whk7rVDyFWPsmiJj1T1hmkd4gB3eDB7r wX61QudSI+SRgHOCfOYdr3w0GvvDOWdsbRE0559wR0Lp6mU5b8kKg33hx2Fgamc3 QPVvv4fVC6LE5+exo4wyLh0h9zqYgAza6IfLP2/QZeRL6I0FkcI= =OGC+ -----END PGP SIGNATURE----- --PXvue2YBBX9xEiHS--