* ps shows same process more than once @ 2013-11-28 7:20 George M. Florendo 2013-11-28 13:08 ` Corinna Vinschen 0 siblings, 1 reply; 11+ messages in thread From: George M. Florendo @ 2013-11-28 7:20 UTC (permalink / raw) To: cygwin 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ps shows same process more than once 2013-11-28 7:20 ps shows same process more than once George M. Florendo @ 2013-11-28 13:08 ` Corinna Vinschen 2013-11-28 15:55 ` Christopher Faylor 2013-12-02 5:37 ` George M. Florendo 0 siblings, 2 replies; 11+ messages in thread From: Corinna Vinschen @ 2013-11-28 13:08 UTC (permalink / raw) To: cygwin [-- Attachment #1: Type: text/plain, Size: 1515 bytes --] 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 -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat [-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ps shows same process more than once 2013-11-28 13:08 ` Corinna Vinschen @ 2013-11-28 15:55 ` Christopher Faylor 2013-11-28 16:02 ` Christopher Faylor 2013-12-02 5:37 ` George M. Florendo 1 sibling, 1 reply; 11+ messages in thread From: Christopher Faylor @ 2013-11-28 15:55 UTC (permalink / raw) To: cygwin 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ps shows same process more than once 2013-11-28 15:55 ` Christopher Faylor @ 2013-11-28 16:02 ` Christopher Faylor 2013-12-02 5:47 ` George M. Florendo 0 siblings, 1 reply; 11+ messages in thread From: Christopher Faylor @ 2013-11-28 16:02 UTC (permalink / raw) To: cygwin 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". 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ps shows same process more than once 2013-11-28 16:02 ` Christopher Faylor @ 2013-12-02 5:47 ` George M. Florendo 2013-12-02 15:25 ` Christopher Faylor 0 siblings, 1 reply; 11+ messages in thread From: George M. Florendo @ 2013-12-02 5:47 UTC (permalink / raw) To: cygwin 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ps shows same process more than once 2013-12-02 5:47 ` George M. Florendo @ 2013-12-02 15:25 ` Christopher Faylor 2013-12-28 6:21 ` Christopher Faylor 0 siblings, 1 reply; 11+ messages in thread From: Christopher Faylor @ 2013-12-02 15:25 UTC (permalink / raw) To: cygwin On Mon, Dec 02, 2013 at 01:47:09PM +0800, George M. Florendo wrote: >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. 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. 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ps shows same process more than once 2013-12-02 15:25 ` Christopher Faylor @ 2013-12-28 6:21 ` Christopher Faylor [not found] ` <CAGaO6c-qqExmA5K5z-q52i1UERE2PF9L7mTayfsjsZ6xFYwe=g@mail.gmail.com> 0 siblings, 1 reply; 11+ messages in thread From: Christopher Faylor @ 2013-12-28 6:21 UTC (permalink / raw) To: cygwin On Mon, Dec 02, 2013 at 10:24:55AM -0500, Christopher Faylor wrote: >On Mon, Dec 02, 2013 at 01:47:09PM +0800, George M. Florendo wrote: >>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. > >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. 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <CAGaO6c-qqExmA5K5z-q52i1UERE2PF9L7mTayfsjsZ6xFYwe=g@mail.gmail.com>]
* Re: ps shows same process more than once [not found] ` <CAGaO6c-qqExmA5K5z-q52i1UERE2PF9L7mTayfsjsZ6xFYwe=g@mail.gmail.com> @ 2014-02-15 6:11 ` George M. Florendo 2014-02-16 17:21 ` Christopher Faylor 0 siblings, 1 reply; 11+ messages in thread From: George M. Florendo @ 2014-02-15 6:11 UTC (permalink / raw) To: cygwin 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ps shows same process more than once 2014-02-15 6:11 ` George M. Florendo @ 2014-02-16 17:21 ` Christopher Faylor 2014-03-10 9:40 ` George M. Florendo 0 siblings, 1 reply; 11+ messages in thread From: Christopher Faylor @ 2014-02-16 17:21 UTC (permalink / raw) To: cygwin On Sat, Feb 15, 2014 at 11:12:48AM +0800, George M. Florendo wrote: >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: I've put up another snapshot which causes the same cygwin pid to be listed twice with two different WINPIDs which can happen when a cygwin process is started by a windows process and then execs another process. Please try it and try to let me know if it works in less than 1.5 months. 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ps shows same process more than once 2014-02-16 17:21 ` Christopher Faylor @ 2014-03-10 9:40 ` George M. Florendo 0 siblings, 0 replies; 11+ messages in thread From: George M. Florendo @ 2014-03-10 9:40 UTC (permalink / raw) To: cygwin On 2/17/14, Christopher Faylor wrote: <snipped> >>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: > > I've put up another snapshot which causes the same cygwin pid to be > listed twice with two different WINPIDs which can happen when a cygwin > process is started by a windows process and then execs another process. > > Please try it and try to let me know if it works in less than 1.5 > months. Thanks a lot cgf! Whew, I'm glad my reply came before 1.5 months. I'm happy to announce that the problem had been SOLVED and that the current snapshot has solved the problem. Hence, the PIDs from 'ps -W' are no longer displayed more than once. Each unique PID is displayed only once! Thank you so much cgf. All the best and more power to cygwin, 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: ps shows same process more than once 2013-11-28 13:08 ` Corinna Vinschen 2013-11-28 15:55 ` Christopher Faylor @ 2013-12-02 5:37 ` George M. Florendo 1 sibling, 0 replies; 11+ messages in thread From: George M. Florendo @ 2013-12-02 5:37 UTC (permalink / raw) To: cygwin [-- Attachment #1: Type: text/plain, Size: 1886 bytes --] 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 [-- Attachment #2: cygcheck.out --] [-- Type: application/octet-stream, Size: 577 bytes --] <snipped> Cygwin DLL version info: DLL version: 1.7.27 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: 20131201-19:20:18 Shared id: cygwin1S5 <snipped> [-- Attachment #3: ps.out --] [-- Type: application/octet-stream, Size: 9110 bytes --] PID PPID PGID WINPID TTY UID STIME COMMAND 4712 1056 4712 5900 pty0 1000 13:11:48 /home/gmflorendo/wamp/bin/apache/Apache2.4.4/bin/httpd 6604 1056 6604 6608 pty0 1000 13:17:06 /usr/bin/ps 5676 1 5676 5676 ? 1000 13:11:15 /usr/bin/mintty 1056 5676 1056 3548 pty0 1000 13:11:15 /usr/bin/bash 4 0 0 4 ? 0 10:36:29 System 280 0 0 280 ? 0 10:36:29 C:\Windows\System32\smss.exe 364 0 0 364 ? 0 10:36:34 C:\PROGRA~1\AVG\AVG2014\avgrsx.exe 408 0 0 408 ? 0 10:36:39 C:\Program Files\AVG\AVG2014\avgcsrvx.exe 672 0 0 672 ? 0 10:36:40 C:\Windows\System32\csrss.exe 724 0 0 724 ? 0 10:36:41 C:\Windows\System32\wininit.exe 736 0 0 736 ? 0 10:36:41 C:\Windows\System32\csrss.exe 784 0 0 784 ? 0 10:36:41 C:\Windows\System32\winlogon.exe 836 0 0 836 ? 0 10:36:41 C:\Windows\System32\services.exe 844 0 0 844 ? 0 10:36:41 C:\Windows\System32\lsass.exe 852 0 0 852 ? 0 10:36:41 C:\Windows\System32\lsm.exe 960 0 0 960 ? 0 10:36:42 C:\Windows\System32\svchost.exe 1036 0 0 1036 ? 0 10:36:43 C:\Windows\System32\svchost.exe 1124 0 0 1124 ? 0 10:36:43 C:\Windows\System32\svchost.exe 1168 0 0 1168 ? 0 10:36:43 C:\Windows\System32\svchost.exe 1208 0 0 1208 ? 0 10:36:43 C:\Windows\System32\svchost.exe 1364 0 0 1364 ? 0 10:36:43 C:\Windows\System32\svchost.exe 1476 0 0 1476 ? 0 10:36:43 C:\Windows\System32\svchost.exe 1596 0 0 1596 ? 0 10:36:44 C:\Windows\System32\wlanext.exe 1604 0 0 1604 ? 0 10:36:44 C:\Windows\System32\conhost.exe 1668 0 0 1668 ? 0 10:36:44 C:\Windows\System32\spoolsv.exe 1772 0 0 1772 ? 0 10:36:45 C:\Windows\System32\svchost.exe 1884 0 0 1884 ? 0 10:36:45 C:\Program Files\Common Files\ABBYY\FineReaderSprint\9.00\Licensing\NetworkLicenseServer.exe 1904 0 0 1904 ? 0 10:36:46 C:\Program Files\AVG\AVG2014\avgidsagent.exe 1924 0 0 1924 ? 0 10:36:46 C:\Program Files\AVG\AVG2014\avgwdsvc.exe 1968 0 0 1968 ? 0 10:36:46 C:\Windows\System32\HPSIsvc.exe 472 0 0 472 ? 0 10:36:46 C:\Windows\System32\svchost.exe 2492 0 0 2492 ? 0 10:36:53 C:\Windows\System32\WUDFHost.exe 2976 0 0 2976 ? 0 10:37:53 C:\Windows\System32\dwm.exe 3032 0 0 3032 ? 0 10:37:53 C:\Windows\explorer.exe 3084 0 0 3084 ? 0 10:37:53 C:\Windows\System32\taskhost.exe 3248 0 0 3248 ? 0 10:37:53 C:\Windows\System32\igfxtray.exe 3268 0 0 3268 ? 0 10:37:53 C:\Windows\System32\hkcmd.exe 3316 0 0 3316 ? 0 10:37:53 C:\Windows\System32\igfxpers.exe 3368 0 0 3368 ? 0 10:37:53 C:\Program Files\Common Files\Java\Java Update\jusched.exe 3380 0 0 3380 ? 0 10:37:53 C:\Program Files\Epson Software\Event Manager\EEventManager.exe 3392 0 0 3392 ? 0 10:37:53 C:\Program Files\AVG\AVG2014\avgui.exe 3404 0 0 3404 ? 0 10:37:53 C:\Windows\System32\spool\drivers\w32x86\3\E_TATIG4P.EXE 3412 0 0 3412 ? 0 10:37:53 C:\Program Files\Intel\Intel(R) Integrated Clock Controller Service\ICCProxy.exe 3448 0 0 3448 ? 0 10:37:53 C:\Program Files\Windows Sidebar\sidebar.exe 3460 0 0 3460 ? 0 10:37:53 C:\Windows\System32\StikyNot.exe 3820 0 0 3820 ? 0 10:37:54 C:\Windows\System32\SearchIndexer.exe 1708 0 0 1708 ? 0 10:38:00 C:\Program Files\Windows Media Player\wmpnetwk.exe 2300 0 0 2300 ? 0 10:38:04 C:\Windows\System32\svchost.exe 2728 0 0 2728 ? 0 10:38:05 C:\Windows\System32\SearchProtocolHost.exe 3904 0 0 3904 ? 0 10:41:13 C:\Program Files\Google\Chrome\Application\chrome.exe 3632 0 0 3632 ? 0 10:41:15 C:\Program Files\Google\Chrome\Application\chrome.exe 3512 0 0 3512 ? 0 10:41:16 C:\Program Files\Google\Chrome\Application\chrome.exe 3428 0 0 3428 ? 0 10:41:17 C:\Program Files\Google\Chrome\Application\chrome.exe 1684 0 0 1684 ? 0 10:41:17 C:\Program Files\Google\Chrome\Application\chrome.exe 660 0 0 660 ? 0 10:41:17 C:\Program Files\Google\Chrome\Application\chrome.exe 4068 0 0 4068 ? 0 10:41:17 C:\Program Files\Google\Chrome\Application\chrome.exe 2708 0 0 2708 ? 0 10:41:18 C:\Program Files\Google\Chrome\Application\chrome.exe 3580 0 0 3580 ? 0 10:41:20 C:\Program Files\Google\Chrome\Application\chrome.exe 4232 0 0 4232 ? 0 10:41:21 C:\Program Files\Google\Chrome\Application\chrome.exe 4304 0 0 4304 ? 0 10:41:22 C:\Program Files\Google\Chrome\Application\chrome.exe 4420 0 0 4420 ? 0 10:41:24 C:\Program Files\Google\Chrome\Application\chrome.exe 4452 0 0 4452 ? 0 10:41:25 C:\Program Files\Google\Chrome\Application\chrome.exe 4560 0 0 4560 ? 0 10:41:27 C:\Program Files\Google\Chrome\Application\chrome.exe 4704 0 0 4704 ? 0 10:41:33 C:\Program Files\Google\Chrome\Application\chrome.exe 4776 0 0 4776 ? 0 10:41:39 C:\Program Files\Google\Chrome\Application\chrome.exe 4840 0 0 4840 ? 0 10:41:39 C:\Program Files\Google\Chrome\Application\chrome.exe 1240 0 0 1240 ? 0 10:45:26 C:\Program Files\Google\Chrome\Application\chrome.exe 5696 0 0 5696 ? 0 10:47:09 C:\Program Files\LibreOffice 4\program\scalc.exe 5584 0 0 5584 ? 0 10:47:09 C:\Program Files\LibreOffice 4\program\soffice.exe 6140 0 0 6140 ? 0 10:47:09 C:\Program Files\LibreOffice 4\program\soffice.bin 5640 0 0 5640 ? 0 10:55:13 C:\Program Files\Google\Chrome\Application\chrome.exe 1512 0 0 1512 ? 0 10:57:48 C:\Program Files\Google\Chrome\Application\chrome.exe 1320 0 0 1320 ? 0 10:58:52 C:\Program Files\Google\Chrome\Application\chrome.exe 2956 0 0 2956 ? 0 10:59:50 C:\Program Files\Adobe\Acrobat 6.0\Reader\AcroRd32.exe 3808 0 0 3808 ? 0 11:05:37 C:\Windows\System32\notepad.exe 5616 0 0 5616 ? 0 12:10:40 C:\Program Files\Google\Chrome\Application\chrome.exe 6028 0 0 6028 ? 0 12:18:36 C:\Program Files\Google\Chrome\Application\chrome.exe 956 0 0 956 ? 0 12:32:04 C:\Program Files\Google\Chrome\Application\chrome.exe 3224 0 0 3224 ? 0 12:39:35 C:\Program Files\Google\Chrome\Application\chrome.exe 2688 0 0 2688 ? 0 13:04:22 C:\Program Files\Google\Chrome\Application\chrome.exe 5444 0 0 5444 ? 0 13:09:47 C:\Windows\System32\cmd.exe 4204 0 0 4204 ? 0 13:09:47 C:\Windows\System32\conhost.exe 908 0 0 908 ? 0 13:11:16 C:\Windows\System32\conhost.exe 4712 1056 4712 5900 pty0 1000 13:11:48 /home/gmflorendo/wamp/bin/apache/Apache2.4.4/bin/httpd 5892 0 0 5892 ? 0 13:11:52 C:\cygwin\home\gmflorendo\wamp\bin\apache\Apache2.4.4\bin\httpd.exe 7168 0 0 7168 ? 0 13:15:00 C:\Windows\System32\taskeng.exe 8072 0 0 8072 ? 0 13:15:58 C:\Windows\System32\SearchFilterHost.exe 3596 0 0 3596 ? 0 13:16:02 C:\Program Files\Google\Chrome\Application\chrome.exe [-- Attachment #4: Type: text/plain, Size: 218 bytes --] -- 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2014-03-10 4:57 UTC | newest] Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-11-28 7:20 ps shows same process more than once George M. Florendo 2013-11-28 13:08 ` Corinna Vinschen 2013-11-28 15:55 ` Christopher Faylor 2013-11-28 16:02 ` Christopher Faylor 2013-12-02 5:47 ` George M. Florendo 2013-12-02 15:25 ` Christopher Faylor 2013-12-28 6:21 ` Christopher Faylor [not found] ` <CAGaO6c-qqExmA5K5z-q52i1UERE2PF9L7mTayfsjsZ6xFYwe=g@mail.gmail.com> 2014-02-15 6:11 ` George M. Florendo 2014-02-16 17:21 ` Christopher Faylor 2014-03-10 9:40 ` George M. Florendo 2013-12-02 5:37 ` George M. Florendo
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).