aboutsummaryrefslogtreecommitdiff
path: root/runit
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2018-04-09 08:50:34 +0100
committerRon Yorston <rmy@pobox.com>2018-04-09 08:50:34 +0100
commit921c1ab66bad54d4ad8591bb74e41ac985248496 (patch)
tree552a04c691e78e78570e4ec2c83fbc0e59953924 /runit
parent5b6f06f5eb8628955262508d153627fe6f2d1c8b (diff)
parenta1870f4807a75663a085c9f5e92870fa7554f0ad (diff)
downloadbusybox-w32-921c1ab66bad54d4ad8591bb74e41ac985248496.tar.gz
busybox-w32-921c1ab66bad54d4ad8591bb74e41ac985248496.tar.bz2
busybox-w32-921c1ab66bad54d4ad8591bb74e41ac985248496.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'runit')
-rw-r--r--runit/chpst.c1
-rw-r--r--runit/sv.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/runit/chpst.c b/runit/chpst.c
index 3ecb85cba..c2641ce8a 100644
--- a/runit/chpst.c
+++ b/runit/chpst.c
@@ -135,7 +135,6 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
135//usage: "\n a SIGXCPU after N seconds" 135//usage: "\n a SIGXCPU after N seconds"
136 136
137#include "libbb.h" 137#include "libbb.h"
138#include <sys/resource.h> /* getrlimit */
139 138
140/* 139/*
141Five applets here: chpst, envdir, envuidgid, setuidgid, softlimit. 140Five applets here: chpst, envdir, envuidgid, setuidgid, softlimit.
diff --git a/runit/sv.c b/runit/sv.c
index 86d181872..8054daedf 100644
--- a/runit/sv.c
+++ b/runit/sv.c
@@ -222,6 +222,7 @@ struct globals {
222#define str_equal(s,t) (strcmp((s), (t)) == 0) 222#define str_equal(s,t) (strcmp((s), (t)) == 0)
223 223
224 224
225#if ENABLE_SV || ENABLE_SVC
225static void fatal_cannot(const char *m1) NORETURN; 226static void fatal_cannot(const char *m1) NORETURN;
226static void fatal_cannot(const char *m1) 227static void fatal_cannot(const char *m1)
227{ 228{
@@ -688,6 +689,7 @@ static int sv(char **argv)
688 } 689 }
689 return rc > 99 ? 99 : rc; 690 return rc > 99 ? 99 : rc;
690} 691}
692#endif
691 693
692#if ENABLE_SV 694#if ENABLE_SV
693int sv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 695int sv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;