Re: pid confusion and pstree

2005-08-06 Thread Joshua Daniel Franklin
On 8/4/05, Jason Pyeron wrote: > hmmm? why are there zeros on the PGID, and why when using -W does PID > change to WINPID? BUG? Actually, I don't know if this is a bug or a documentation shortcoming. From looking at the source, it looks like cygwin returns the same number for p->pid and p->dwProc

Re: pid confusion and pstree

2005-08-05 Thread Jason Pyeron
that is EVIL thanks On Fri, 5 Aug 2005, Yitzchak Scott-Thoennes wrote: On Thu, Aug 04, 2005 at 03:26:02PM -0400, Jason Pyeron wrote: also does anyone have a patch to show the WINPID for pstree? $ pstree -Ahup|perl -wpe's#\d+#($w=Cygwin::pid_to_winpid($&))&&$w!=$&?"$&/$w":$&#ge' ?(1)-+-bash

Re: pid confusion and pstree

2005-08-05 Thread Yitzchak Scott-Thoennes
On Thu, Aug 04, 2005 at 03:26:02PM -0400, Jason Pyeron wrote: > also does anyone have a patch to show the WINPID for pstree? $ pstree -Ahup|perl -wpe's#\d+#($w=Cygwin::pid_to_winpid($&))&&$w!=$&?"$&/$w":$&#ge' ?(1)-+-bash(2100,sthoenna)---mutt(1696/2384)---emacs(2744/1300) |-bash(3728,sthoen

Re: pid confusion and pstree (Attn: User's Guide maintainer)

2005-08-04 Thread Joshua Daniel Franklin
On 8/4/05, Igor Pechtchanski wrote: > P.S. Note to the UG maintainer: Joshua, there's a typo in the description > of "ps" on the above referenced page: "synonomous" should be "synonymous". Nice catch, it will be in the next refresh. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simp

RE: pid confusion and pstree (Attn: User's Guide maintainer)

2005-08-04 Thread Herb Martin
Jason Pyeron wrote> > I did read the man page for ps, first, before posting. > > I does not say that the cygwin pid will be changed to the > windows pid for cygwin processes. It does indicate for > windows processes the PID is the same as the WINPID and can > be used in kill -f. I am a Cygwin

Re: pid confusion and pstree (Attn: User's Guide maintainer)

2005-08-04 Thread Jason Pyeron
On Thu, 4 Aug 2005, Igor Pechtchanski wrote: See "man ps" and . -W means "all Windows processes". IIRC, the "-a" is ignored when -W is specified. HTH, Igor P.S. Note to the UG maintainer: Joshua, there's a typo in the description

Re: pid confusion and pstree (Attn: User's Guide maintainer)

2005-08-04 Thread Igor Pechtchanski
On Thu, 4 Aug 2005, Jason Pyeron wrote: > On Thu, 4 Aug 2005, Igor Pechtchanski wrote: > > > On Thu, 4 Aug 2005, Jason Pyeron wrote: > > > > > On Thu, 4 Aug 2005, Igor Pechtchanski wrote: > > > > > > > On Thu, 4 Aug 2005, Jason Pyeron wrote: > > > > > > > > > sorry if this wraps. > > > > > > > > >

Re: pid confusion and pstree

2005-08-04 Thread Jason Pyeron
On Thu, 4 Aug 2005, Igor Pechtchanski wrote: On Thu, 4 Aug 2005, Jason Pyeron wrote: On Thu, 4 Aug 2005, Igor Pechtchanski wrote: On Thu, 4 Aug 2005, Jason Pyeron wrote: sorry if this wraps. what is my WINPID for the current bash? [EMAIL PROTECTED] mysql-4.1.13.new]$ ps -W | head -1 && p

Re: pid confusion and pstree

2005-08-04 Thread Igor Pechtchanski
On Thu, 4 Aug 2005, Jason Pyeron wrote: > On Thu, 4 Aug 2005, Igor Pechtchanski wrote: > > > On Thu, 4 Aug 2005, Jason Pyeron wrote: > > > > > sorry if this wraps. > > > > > > what is my WINPID for the current bash? > > > > > > [EMAIL PROTECTED] mysql-4.1.13.new]$ ps -W | head -1 && ps -W | grep b

Re: pid confusion and pstree

2005-08-04 Thread Jason Pyeron
On Thu, 4 Aug 2005, Igor Pechtchanski wrote: On Thu, 4 Aug 2005, Jason Pyeron wrote: sorry if this wraps. what is my WINPID for the current bash? [EMAIL PROTECTED] mysql-4.1.13.new]$ ps -W | head -1 && ps -W | grep bash && pstree -Ahup PIDPPIDPGID WINPID TTY UIDSTIME

Re: pid confusion and pstree

2005-08-04 Thread Igor Pechtchanski
On Thu, 4 Aug 2005, Jason Pyeron wrote: > sorry if this wraps. > > what is my WINPID for the current bash? > > [EMAIL PROTECTED] mysql-4.1.13.new]$ ps -W | head -1 && ps -W | grep bash && > pstree -Ahup > PIDPPIDPGID WINPID TTY UIDSTIME COMMAND > I2356 12356