This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: ps shows same process more than once
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 16 Feb 2014 12:15:53 -0500
- Subject: Re: ps shows same process more than once
- Authentication-results: sourceware.org; auth=none
- References: <CAGaO6c9rxafNajvdzQhngOjTQn+fjjAp9NRLTpYbbgcKHe8R5A at mail dot gmail dot com> <20131128130813 dot GH2449 at calimero dot vinschen dot de> <20131128155504 dot GC5063 at ednor dot casa dot cgf dot cx> <20131128160243 dot GB5803 at ednor dot casa dot cgf dot cx> <CAGaO6c8EBBzQvdEkUFEOb4=npHXsdwgOYaUiL=WHO3iVsufZBg at mail dot gmail dot com> <20131202152455 dot GC5464 at ednor dot casa dot cgf dot cx> <20131228062151 dot GA4604 at ednor dot casa dot cgf dot cx> <CAGaO6c-qqExmA5K5z-q52i1UERE2PF9L7mTayfsjsZ6xFYwe=g at mail dot gmail dot com> <CAGaO6c-+NaPQhKQP=rDS0RaDjnryzUJd1_xwhjO5iADYAqW4zg at mail dot gmail dot com>
- Reply-to: cygwin at cygwin dot 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