OSDN Git Service

Bugfix from Avery Pennarun: getpriority() uses a different range than nice(), so...
authorRob Landley <rob@landley.net>
Fri, 17 Aug 2012 03:24:30 +0000 (22:24 -0500)
committerRob Landley <rob@landley.net>
Fri, 17 Aug 2012 03:24:30 +0000 (22:24 -0500)
commit734206bd09aaba9c3175be557e4f35b095df1ccf
tree52c3bc4f64a8c63826df1c9daf7df5696ea6b8f0
parentc96444da80b7db3bd5d7c3e05e15f973840378c6
Bugfix from Avery Pennarun: getpriority() uses a different range than nice(), so follow thenice man page and zero errno then check it if nice returns -1.
toys/nice.c