public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: ps shows same process more than once
Date: Sun, 16 Feb 2014 17:21:00 -0000	[thread overview]
Message-ID: <20140216171553.GA4830@ednor.casa.cgf.cx> (raw)
In-Reply-To: <CAGaO6c-+NaPQhKQP=rDS0RaDjnryzUJd1_xwhjO5iADYAqW4zg@mail.gmail.com>

On Sat, Feb 15, 2014 at 11:12:48AM +0800, George M. Florendo wrote:
>On 12/28/13, Christopher Faylor wrote:
>>>>> Oops.  Sorry.  Just noticed that the pids weren't "different".  There
>>>>> are still pathological situations where a pid can show up twice when
>>>>> doing a "ps -W".  I've seen the issue before but fixing it would
>>>>> involve
>>>>> a global process lock which would slow down Cygwin for the benefit of
>>>>> a more accurate "ps -W".
>>>>
>>>>Oh, I'm sorry too.  Didn't get to read your first sentence earlier.
>>>>I'd rather have a faster cygwin more than a more accurate "ps -W".
>>>>
>>>>Thanks for all your help.
>>>
>>>Thanks for understanding.  I will try to revisit this code sometime in
>>>the near future to see if I can do something about this case.  I had a
>>>glimmer of an idea about how to fix this in the thinking room recently.
>>
>> This problem should be fixed in the latest snapshot.
>
>Thanks a lot cgf.  Checked the latest snaphshot.   ps -W still shows
>the same process (with same PID) twice, while ps aux shows it only
>once.  Here, please look at process 5952:

I've put up another snapshot which causes the same cygwin pid to be
listed twice with two different WINPIDs which can happen when a cygwin
process is started by a windows process and then execs another process.

Please try it and try to let me know if it works in less than 1.5
months.

cgf

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2014-02-16 17:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-28  7:20 George M. Florendo
2013-11-28 13:08 ` Corinna Vinschen
2013-11-28 15:55   ` Christopher Faylor
2013-11-28 16:02     ` Christopher Faylor
2013-12-02  5:47       ` George M. Florendo
2013-12-02 15:25         ` Christopher Faylor
2013-12-28  6:21           ` Christopher Faylor
     [not found]             ` <CAGaO6c-qqExmA5K5z-q52i1UERE2PF9L7mTayfsjsZ6xFYwe=g@mail.gmail.com>
2014-02-15  6:11               ` George M. Florendo
2014-02-16 17:21                 ` Christopher Faylor [this message]
2014-03-10  9:40                   ` George M. Florendo
2013-12-02  5:37   ` George M. Florendo

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=20140216171553.GA4830@ednor.casa.cgf.cx \
    --to=cgf-use-the-mailinglist-please@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).