[PATCH] Add -p option to ps command

Jerry D. Hedden jerry@hedden.us
Thu Feb 16 17:46:00 GMT 2006


> -------- Original Message --------
> Subject: Re: [PATCH] Add -p option to ps command
> From: Corinna Vinschen <corinna-cygwin@cygwin.com>
> Date: Thu, February 16, 2006 10:09 am
> To: cygwin-patches@cygwin.com
> 
> On Feb 16 07:58, Jerry D. Hedden wrote:
> > Thanks.  I realized one minor oversight.  Using -p should imply -a so
> > that even if the PID is not owned by the current user, it will still
> > get listed.  I've attached a patch for this (just a one line addition)
> > that builds on top of the previous patch (i.e., apply it against
> > version 1.20 of ps.cc).  Thanks again.
> 
> > Index: src/winsup/utils/ps.cc
> > ===================================================================
> > --- ps.cc  1.20
> > +++ ps.cc
> > @@ -286,6 +286,7 @@
> >  	break;
> >        case 'p':
> >  	proc_id = atoi (optarg);
> > +	aflag = 1;
> >  	break;
> >        case 's':
> >  	sflag = 1;
> 
> What about the ChangeLog entry?  http://cygwin.com/contrib.html

I'll get this right one of these days.  Thanks for your patience.

Changelog entry:

2006-02-16  Jerry D. Hedden  <jerry@hedden.us>

	* ps.cc (main): -p implies -a





More information about the Cygwin-patches mailing list