X-Recipient: archive-cygwin@delorie.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:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; q=dns; s=
	default; b=hPdrsQ3h6S0Rv4/klrSF02kMvJb1lhZ3MA0xYE9ty05oMaqk8754o
	uYfBgG3PptdbttopklztZwrnZ2aG5uCc9/pmKHSlzNiHN4zz2NgEEnSPAkpdjdp2
	Di06VM+x93fnbf9D66n4z7Jk2UO3ncvOAQA5qRVDY3Y9LvSD7OL71w=
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:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; s=default;
	 bh=yDux7pbosO2N971axbtzROK96Dk=; b=dWJuUbcTLw1t3E/SmljBRAzxQ4bY
	1JW6gA5lMutKm+MRk6MJpVMlaiOI/mLr5oAB8qMYsz/b9cdWqRDnO03OUd6EY+3O
	xauzvPsirJjFkwjOHCq/Ht13AoHwW008DOTwMBGqSTfztNK4RU+nhTMaVX/Mi58e
	rC+7LA4ec9PICbw=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=BAYES_50,RDNS_NONE,URIBL_BLOCKED autolearn=no version=3.3.2
X-HELO: mho-01-ewr.mailhop.org
X-Mail-Handler: Dyn Standard SMTP by Dyn
X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1/rUiqN2UoPFVMZ6FmprSsq
Date: Thu, 28 Nov 2013 10:55:04 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: ps shows same process more than once
Message-ID: <20131128155504.GC5063@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <CAGaO6c9rxafNajvdzQhngOjTQn+fjjAp9NRLTpYbbgcKHe8R5A@mail.gmail.com> <20131128130813.GH2449@calimero.vinschen.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20131128130813.GH2449@calimero.vinschen.de>
User-Agent: Mutt/1.5.20 (2009-06-14)

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'.

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

