This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add -p option to ps command


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]