Fix BZ #18086 (nice resets errno to 0)

Mike Frysinger vapier@gentoo.org
Mon Aug 10 02:19:00 GMT 2015


On 09 Aug 2015 16:28, Paul Pluzhnikov wrote:
> +      printf ("FAIL: errno = %d != EBADF\n", errno);

i often find error messages like this hard to parse.  explicit is better:
	printf ("FAIL: errno = %i, but wanted EBADF (%i)\n", errno, EBADF);

> @@ -47,5 +45,7 @@ nice (int incr)
>  	errno = EPERM;

not really related, but shouldn't this use __set_errno ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150810/811c90ea/attachment.sig>


More information about the Libc-alpha mailing list