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 89d8ce443..b306974bb 100644 --- a/runit/chpst.c +++ b/runit/chpst.c | |||
@@ -171,8 +171,8 @@ static void limit(int what, long l) | |||
171 | { | 171 | { |
172 | struct rlimit r; | 172 | struct rlimit r; |
173 | 173 | ||
174 | if (getrlimit(what, &r) == -1) | 174 | /* Never fails under Linux (except if you pass it bad arguments) */ |
175 | bb_perror_msg_and_die("getrlimit"); | 175 | getrlimit(what, &r); |
176 | if ((l < 0) || (l > r.rlim_max)) | 176 | if ((l < 0) || (l > r.rlim_max)) |
177 | r.rlim_cur = r.rlim_max; | 177 | r.rlim_cur = r.rlim_max; |
178 | else | 178 | else |