From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] TEST: Cygwin 3.1.0-0.2
Date: Mon, 19 Aug 2019 14:03:00 -0000 [thread overview]
Message-ID: <20190819140040.GM11632@calimero.vinschen.de> (raw)
In-Reply-To: <20190819214907.05466c00d626590591e30c79@nifty.ne.jp>
[-- Attachment #1: Type: text/plain, Size: 1667 bytes --]
On Aug 19 21:49, Takashi Yano wrote:
> Hi Corinna,
>
> On Mon, 19 Aug 2019 12:39:56 +0200
> Corinna Vinschen wrote:
> > I uploaded a new Cygwin test release 3.1.0-0.2
>
> 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.
>
> 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
>
> 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
--
Corinna Vinschen
Cygwin Maintainer
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2019-08-19 14:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-19 11:20 Corinna Vinschen
2019-08-19 14:01 ` Takashi Yano
2019-08-19 14:03 ` Corinna Vinschen [this message]
2019-08-19 15:20 ` Takashi Yano
2019-08-19 16:50 ` Corinna Vinschen
2019-08-21 22:21 ` L A Walsh
2019-08-22 11:46 ` Takashi Yano
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190819140040.GM11632@calimero.vinschen.de \
--to=corinna-cygwin@cygwin.com \
--cc=cygwin@cygwin.com \
/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).