On Nov 27 18:58, Christian Franke wrote: > No "Fixes:" in comment because the current behavior emulates old Linux > behavior which is possibly not a bug. > > SUS 1997 to POSIX 2024 require to return the new nice value. > https://pubs.opengroup.org/onlinepubs/007908799/xsh/nice.html > https://pubs.opengroup.org/onlinepubs/9799919799/functions/nice.html > https://man7.org/linux/man-pages/man2/nice.2.html > > FreeBSD still returns 0: > https://man.freebsd.org/cgi/man.cgi?query=nice&sektion=3 > > Ancient Unix returned nothing :-) > http://man.cat-v.org/unix_10th/2/nice > > -- > Regards, > Christian >
> From 40d17d32e4c0a7dc69f39e57f3d0f9f07fca5c75 Mon Sep 17 00:00:00 2001 > From: Christian Franke <christian.fra...@t-online.de> > Date: Wed, 27 Nov 2024 18:54:37 +0100 > Subject: [PATCH] Cygwin: nice: align return value and errno with POSIX and > Linux > > Return new nice value instead of 0 on success. > Set errno to EPERM instead of EACCES on failure. > > Signed-off-by: Christian Franke <christian.fra...@t-online.de> > --- > winsup/cygwin/release/3.6.0 | 4 ++++ > winsup/cygwin/syscalls.cc | 11 ++++++++++- > 2 files changed, 14 insertions(+), 1 deletion(-) Pushed. Thanks, Corinna