From 4e6d5117b839cef41cd3919966f95bf25d24d8d9 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 12 Mar 2008 22:14:34 +0000 Subject: inetd: make it NOMMU-capable and IPv6-friendly. Lots of renames of variable/function names Total: -2474 bytes text data bss dec hex filename 802215 661 7452 810328 c5d58 busybox_old 800120 661 7428 808209 c5511 busybox_unstripped --- runit/chpst.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runit') 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) { 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 -- cgit v1.2.3