看板 DFBSD_bugs 關於我們 聯絡資訊
--===============1732928077== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable New submission from Stathis Kamperis <ekamperi@gmail.com>: Salute. The nice(3) library call returns 0/-1, whereas it should return the new pri= ority according to POSIX expectations. I attach a patch to fix this. The nice(1) utility isn't affected in any way whatsoever, since it doesn't use the nice(3) call. It uses get/setpriority(= ) directly. If no one objects, I'll commit it in the next days. Cheers, Stathis ---------- assignedto: Beket files: nice.diff messages: 6775 nosy: Beket priority: bug status: unread title: nice(3) doesn't return new priority _____________________________________________________ DragonFly issue tracker <bugs@lists.dragonflybsd.org> <http://bugs.dragonflybsd.org/issue1408> _____________________________________________________ --===============1732928077== Content-Type: application/octet-stream MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="nice.diff" ZGlmZiAtLWdpdCBhL2xpYi9saWJjL2dlbi9uaWNlLmMgYi9saWIvbGliYy9nZW4vbmljZS5jCmlu ZGV4IGVlNGFmNGYuLmI1ZGFjY2MgMTAwNjQ0Ci0tLSBhL2xpYi9saWJjL2dlbi9uaWNlLmMKKysr IGIvbGliL2xpYmMvZ2VuL25pY2UuYwpAQCAtNTIsNSArNTIsNyBAQCBuaWNlKGludCBpbmNyKQog CXByaW8gPSBnZXRwcmlvcml0eShQUklPX1BST0NFU1MsIDApOwogCWlmIChwcmlvID09IC0xICYm IGVycm5vKQogCQlyZXR1cm4gKC0xKTsKLQlyZXR1cm4gKHNldHByaW9yaXR5KFBSSU9fUFJPQ0VT UywgMCwgcHJpbyArIGluY3IpKTsKKwlpZiAoc2V0cHJpb3JpdHkoUFJJT19QUk9DRVNTLCAwLCBw cmlvICsgaW5jcikgPT0gLTEpCisJCXJldHVybiAoLTEpOworCXJldHVybiAoZ2V0cHJpb3JpdHko UFJJT19QUk9DRVNTLCAwKSk7CiB9Cg== --===============1732928077==--