diff options
Diffstat (limited to 'runit')
-rw-r--r-- | runit/chpst.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runit/chpst.c b/runit/chpst.c index 89d8ce4..b306974 100644 --- a/runit/chpst.c +++ b/runit/chpst.c @@ -171,8 +171,8 @@ static void limit(int what, long l) { struct rlimit r; - if (getrlimit(what, &r) == -1) - bb_perror_msg_and_die("getrlimit"); + /* Never fails under Linux (except if you pass it bad arguments) */ + getrlimit(what, &r); if ((l < 0) || (l > r.rlim_max)) r.rlim_cur = r.rlim_max; else |