delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/11/28/02:21:15

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:date:message-id:subject:from:to
:content-type; q=dns; s=default; b=PL6a1TZz0samtKnmeUP4W/Gq9gr+V
S91wO6/BMw7khA9T+l1zuHlOXt0OOCIpaZBmzlbKViby3b9HRTQB/rZnWUb/qEpJ
W9GbU292VcprK1HBXMZ7f0JhxwRI06fQG+tXOf7iLQDqtBDxiT/GCie4ygc3H+m2
0xV5+OubmGMZ8Q=
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:date:message-id:subject:from:to
:content-type; s=default; bh=hsLSaqdE6BUEPqp1t81lsSpR8Is=; b=h8i
pcwkkfk9VWb4F3tmaVVCBMPS8kn1x84s0pxfsIq0oqmt+CPWa1eUPhsu9hRiqe0T
9RcxkEY5FYjl7edbv9uIL7ShSTMYdpYdgNPEw5eLZcV3i+G+DVxCfQaZo415yE5Z
nK4XqBkItjiV4gysu4mNze5Q0w47iPaNWEBC6N5k=
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=3.4 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RDNS_NONE,SPF_PASS autolearn=no version=3.3.2
X-HELO: mail-qe0-f68.google.com
MIME-Version: 1.0
X-Received: by 10.229.59.66 with SMTP id k2mr73687350qch.3.1385623234260; Wed, 27 Nov 2013 23:20:34 -0800 (PST)
Date: Thu, 28 Nov 2013 15:20:34 +0800
Message-ID: <CAGaO6c9rxafNajvdzQhngOjTQn+fjjAp9NRLTpYbbgcKHe8R5A@mail.gmail.com>
Subject: 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

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?

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019