public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
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 16:50:00 -0000	[thread overview]
Message-ID: <20190819152032.GP11632@calimero.vinschen.de> (raw)
In-Reply-To: <20190820000345.e8554f7f2516f399b468b2fb@nifty.ne.jp>

[-- Attachment #1: Type: text/plain, Size: 744 bytes --]

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.
> > 
> > If you call procps, which is slower than Cygwin's own ps, you tend
> > to see cat more often in this scenario.
> 
> 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

-- 
Corinna Vinschen
Cygwin Maintainer

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2019-08-19 15:20 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
2019-08-19 15:20     ` Takashi Yano
2019-08-19 16:50       ` Corinna Vinschen [this message]
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=20190819152032.GP11632@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).