renice(8): don't succeed after 256 errors
authorcheloha <cheloha@openbsd.org>
Fri, 12 Aug 2022 00:24:07 +0000 (00:24 +0000)
committercheloha <cheloha@openbsd.org>
Fri, 12 Aug 2022 00:24:07 +0000 (00:24 +0000)
commit425e94d59be781daef009b86347a14b1c4f33109
treef8716de19c00b670f4bdf1d07e8bb199281e41ec
parent8ad6f46fb70476de70b63be79bfb4566c56cc0e3
renice(8): don't succeed after 256 errors

Set error instead of incrementing it.

Link: https://marc.info/?l=openbsd-tech&m=166025831731506&w=2
ok millert@
usr.bin/renice/renice.c