This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
RE: [PATCH] Add -p option to ps command
- From: "Jerry D. Hedden" <jerry at hedden dot us>
- To: cygwin-patches at cygwin dot com
- Date: Thu, 16 Feb 2006 10:46:07 -0700
- Subject: RE: [PATCH] Add -p option to ps command
> -------- 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