Re: getpriority() and top display for priority inconsistent

2019-08-15 Thread john doe
On 8/15/2019 1:04 PM, Houder wrote: > On Thu, 15 Aug 2019 12:20:38, Corinna Vinschen wrote: >> >> On Aug 15 09:41, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin wrote: git format-patch output with commit message, please? >>> =20 >>> Please educate me how to do that; I am just using "git di

Re: getpriority() and top display for priority inconsistent

2019-08-15 Thread Houder
On Thu, 15 Aug 2019 12:20:38, Corinna Vinschen wrote: > > On Aug 15 09:41, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin wrote: > > > git format-patch output with commit message, please? > >=20 > > Please educate me how to do that; I am just using "git diff --no-color". > > $ git add > $ git

Re: getpriority() and top display for priority inconsistent

2019-08-15 Thread john doe
On 8/15/2019 11:41 AM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin wrote: >> git format-patch output with commit message, please? > > Please educate me how to do that; I am just using "git diff --no-color". > $ git format-patch --stdout If you want to request for comment you could use 'git

Re: getpriority() and top display for priority inconsistent

2019-08-15 Thread Corinna Vinschen
On Aug 15 12:20, Corinna Vinschen wrote: > On Aug 15 09:41, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin wrote: > > > git format-patch output with commit message, please? > > > > Please educate me how to do that; I am just using "git diff --no-color". > > $ git add > $ git commit -a Scratch

Re: getpriority() and top display for priority inconsistent

2019-08-15 Thread Corinna Vinschen
On Aug 15 09:41, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin wrote: > > git format-patch output with commit message, please? > > Please educate me how to do that; I am just using "git diff --no-color". $ git add $ git commit -a - opens editor to create a commit message. first line is su

RE: getpriority() and top display for priority inconsistent

2019-08-15 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
> git format-patch output with commit message, please? Please educate me how to do that; I am just using "git diff --no-color". > The commit message should describe what the problem is and how the patch > fixes it. One or > two sentences are enough. The commit message is there: > > "getprior

Re: getpriority() and top display for priority inconsistent

2019-08-15 Thread Corinna Vinschen
On Aug 14 20:01, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin wrote: > > Feel free to provide a patch, just, please, create a valid git commit > > message > > "getpriority() consistent with process priority > https://cygwin.com/ml/cygwin/2019-08/msg00122.html"; > > The changeset is really tr

Re: getpriority() and top display for priority inconsistent

2019-08-14 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
> Feel free to provide a patch, just, please, create a valid git commit message "getpriority() consistent with process priority https://cygwin.com/ml/cygwin/2019-08/msg00122.html"; The changeset is really trivial: diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index a914ae8.

Re: getpriority() and top display for priority inconsistent

2019-08-08 Thread Corinna Vinschen
On Aug 8 13:45, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin wrote: > > I pushed your patch with a short commit message. > > Thanks! Thinking about that a little more, getpriority(PRIO_PROCESS) > returns the cached version of priority (since the last setpriority()) > but should return "live"

Re: getpriority() and top display for priority inconsistent

2019-08-08 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
> I pushed your patch with a short commit message. Thanks! Thinking about that a little more, getpriority(PRIO_PROCESS) returns the cached version of priority (since the last setpriority()) but should return "live" version by re-getting and re-caching the actual thing from the system: 1. The pr