delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:mime-version:in-reply-to:references:date | |
:message-id:subject:from:to:content-type; q=dns; s=default; b=Oq | |
55p6nWjz3nnUVtuE3xaQKui0tOCpiEXE3xgUaTxsuao2gNydNO9lbXqhys9XUu+t | |
t3ewra3DqCxGNpO7cjA5XYLnqO6E7V35yfpimEp4H7hy3JC7YlFHh+yHFcNxqLqy | |
cOOG0GxMyBTvMohrYn3BdAXk6XrEuRFCnCYeLwFoQ= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:mime-version:in-reply-to:references:date | |
:message-id:subject:from:to:content-type; s=default; bh=xUeyOlHC | |
c2QW0FuwOHBOk35j/H4=; b=hgI00SGGB9njh7CaoAQKHJLPMQDsr9fjJhN7Lpu5 | |
RuciSATs16DpJWy21TiLXS7vZz+YwucQrAEDfqG/0zGBA6fQW/Y9BWO8/rFbbFRl | |
+kTDueozXHNijSSsfJZzXPYE+1jo24uLueXkq2asSkjBXbjLeUmminm1dTIzTKvY | |
Zh4= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RDNS_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no version=3.3.2 |
X-HELO: | mail-qa0-f41.google.com |
MIME-Version: | 1.0 |
X-Received: | by 10.224.148.9 with SMTP id n9mr35618869qav.32.1385963229838; Sun, 01 Dec 2013 21:47:09 -0800 (PST) |
In-Reply-To: | <20131128160243.GB5803@ednor.casa.cgf.cx> |
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> |
Date: | Mon, 2 Dec 2013 13:47:09 +0800 |
Message-ID: | <CAGaO6c8EBBzQvdEkUFEOb4=npHXsdwgOYaUiL=WHO3iVsufZBg@mail.gmail.com> |
Subject: | Re: ps shows same process more than once |
From: | "George M. Florendo" <georgeflorendo AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
On 11/29/13, Christopher Faylor wrote: > On Thu, Nov 28, 2013 at 10:55:04AM -0500, Christopher Faylor wrote: >>On Thu, Nov 28, 2013 at 02:08:13PM +0100, Corinna Vinschen wrote: >>>On Nov 28 15:20, George M. Florendo wrote: >>>> Hi, >>>> >>>> I run a non cygwin apache process named httpd.exe. Checking it with >>>> "ps -W" shows a listing of the same process (with PID 4560 in this >>>> case) twice. >>>> >>>> $ ps -W | grep httpd >>>> 4560 1604 4560 5304 pty0 1000 09:55:21 >>>> /home/georgeflorendo/wamp/bin/apache/Apache2.4.4/bin/httpd >>>> 4560 1604 4560 5304 pty0 1000 09:55:21 >>>> /home/georgeflorendo/wamp/bin/apache/Apache2.4.4/bin/httpd >>>> 7508 0 0 7508 ? 0 15:09:50 >>>> C:\cygwin\home\georgeflorendo\wamp\bin\apache\Apache2.4.4\bin\httpd.exe >>>> >>>> Doing a "ps aux" shows it only once. >>>> >>>> $ ps aux >>>> PID PPID PGID WINPID TTY UID STIME COMMAND >>>> 1340 7856 1340 5720 pty5 1000 15:13:50 /usr/bin/ps >>>> 1604 4008 1604 2292 pty0 1000 09:17:01 >>>> /usr/bin/bash >>>> 4008 1 4008 4008 ? 1000 09:17:00 >>>> /usr/bin/mintty >>>> 4560 1604 4560 5304 pty0 1000 09:55:21 >>>> /home/georgeflorendo/wamp/bin/apache/Apache2.4.4/bin/httpd >>>> >>>> <snipped> >>>> >>>> Is it correct that ps -W shows the same process twice? >>> >>>Not exactly but it could happen. Can you try the latest snapshot Cygwin >>>DLL from http://cygwin.com/snapshots/ and see if it fixes the problem? >> >>I don't see anything in the ChangeLog which would affect this and I'd >>be concerned if there was. >> >>There are scenarios where two different windows pids can be associated >>with the same Cygwin pid. You should only see it when you do a "ps -W". >> >>So, AFAICT, the correct answer to the "Is it correct" is "Yes'. > > 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. -- George M. Florendo Programmer http://www.facebook.com/i.am.georgeflorendo -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |