ps shows same process more than once

George M. Florendo georgeflorendo@gmail.com
Mon Dec 2 05:37:00 GMT 2013


On 11/28/13, 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?

Thanks Corinna,

I've tried the latest snapshot but the results still remain the same.
FWIW, here's cygcheck's output showing I used the latest snapshot.
Attached too is the raw ps output.  Maybe the full listing of ps and
the output positions of PID 4712 could give you clues.

But in any case, I've read cgf's reply and we don't want cygwin
slower.  I can live with listings containing duplicate PIDs :)

Thank you!

George

-- 
George M. Florendo
Programmer
http://www.facebook.com/i.am.georgeflorendo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 577 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20131202/7bdd8b0b/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ps.out
Type: application/octet-stream
Size: 9110 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20131202/7bdd8b0b/attachment-0001.obj>
-------------- next part --------------
--
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


More information about the Cygwin mailing list