diff options
| -rw-r--r-- | runit/chpst.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runit/chpst.c b/runit/chpst.c index 2be1a5775..4e3d613b7 100644 --- a/runit/chpst.c +++ b/runit/chpst.c @@ -466,7 +466,8 @@ int chpst_main(int argc UNUSED_PARAM, char **argv) /* nice should be done before xsetuid */ if (opt & OPT_n) { errno = 0; - if (nice(xatoi(nicestr)) == -1) + nice(xatoi(nicestr)); + if (errno) bb_simple_perror_msg_and_die("nice"); } |
