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=KP 5MJPtB1BgpY9po6uqGbKUtR4AhFHMFchU5x375l3q6XOy6ac3nauTcV+nca/qBOV 3YIES1nmJFUIoaLm+txWDD44pbKZoye2AnHDguVAQZwCA7vMv8AIMFuVBMvwZxQb O68NT+4jYtsbDn5xaTyOXGETC1qi4qvnL9bx513Gs= 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=dGHn9get ZEA9sB5p2aJ7t1Xo/zo=; b=viSxtAq4Uqtf62GbTBLPNYYqaTKR85xAUMNYPWKY auR2foN4k+ZvzvVjteY5YaIt1I9iUJxKCL5WDkywHr1hIa9Net8Tk1VqnNPEO/nQ ydKTX3SEugj9ac0BghUMdw6K8TBeKQfLmnpf7MkvRChEX1YAFdTVmgsl1oOTGu5B /bQ= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=1.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qc0-f193.google.com MIME-Version: 1.0 X-Received: by 10.140.35.211 with SMTP id n77mr17744165qgn.82.1392433968774; Fri, 14 Feb 2014 19:12:48 -0800 (PST) In-Reply-To: References: <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> <20131202152455 DOT GC5464 AT ednor DOT casa DOT cgf DOT cx> <20131228062151 DOT GA4604 AT ednor DOT casa DOT cgf DOT cx> Date: Sat, 15 Feb 2014 11:12:48 +0800 Message-ID: Subject: Re: ps shows same process more than once From: "George M. Florendo" To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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: $ ps -W | grep httpd | sed -e 's/ \+/ /g' 5952 5844 5952 3096 pty0 1000 11:00:55 /home/gmf/wamp/bin/apache/Apache2.4.4/bin/httpd 5952 5844 5952 3096 pty0 1000 11:00:55 /home/gmf/wamp/bin/apache/Apache2.4.4/bin/httpd 7240 0 0 7240 ? 0 11:00:56 C:\cygwin\home\gmf\wamp\bin\apache\Apache2.4.4\bin\httpd.exe But 'ps aux' shows PID 5952 only once: $ ps aux | grep httpd | sed -e 's/ \+/ /g' 5952 5844 5952 3096 pty0 1000 11:00:55 /home/gmf/wamp/bin/apache/Apache2.4.4/bin/httpd I'm using the latest snapshot as indicated here: 3138k 2014/02/13 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2014-02-13 14:07 Cygwin DLL version info: DLL version: 1.7.29 DLL epoch: 19 DLL old termios: 5 DLL malloc env: 28 Cygwin conv: 181 API major: 0 API minor: 271 Shared data: 5 DLL identifier: cygwin1 Mount registry: 3 Cygwin registry name: Cygwin Program options name: Program Options Installations name: Installations Cygdrive default prefix: Build date: Snapshot date: 20140213-14:06:26 Shared id: cygwin1S5 Thanks! George -- 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