[PATCH] Add -p option to ps command

Corinna Vinschen corinna-cygwin@cygwin.com
Thu Feb 16 15:09:00 GMT 2006


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


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat



More information about the Cygwin-patches mailing list