From 1f7a397ea589f31ab8e8eed72ebc2933ddb229a9 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 28 Nov 2020 12:38:56 +0000 Subject: Adapt to new exec.h --- src/daemontools-extras/s6-softlimit.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/daemontools-extras/s6-softlimit.c') diff --git a/src/daemontools-extras/s6-softlimit.c b/src/daemontools-extras/s6-softlimit.c index f12564d..608385a 100644 --- a/src/daemontools-extras/s6-softlimit.c +++ b/src/daemontools-extras/s6-softlimit.c @@ -2,10 +2,11 @@ #include #include + #include #include #include -#include +#include #define USAGE "s6-softlimit [ -a allbytes ] [ -c corebytes ] [ -d databytes ] [ -f filebytes ] [ -l lockbytes ] [ -m membytes ] [ -o openfiles ] [ -p processes ] [ -r residentbytes ] [ -s stackbytes ] [ -t cpusecs ] prog..." @@ -24,7 +25,7 @@ static void doit (int res, char const *arg) if (setrlimit(res, &r) < 0) strerr_diefu1sys(111, "setrlimit") ; } -int main (int argc, char const *const *argv, char const *const *envp) +int main (int argc, char const *const *argv) { subgetopt_t l = SUBGETOPT_ZERO ; PROG = "s6-softlimit" ; @@ -111,5 +112,5 @@ int main (int argc, char const *const *argv, char const *const *envp) } argc -= l.ind ; argv += l.ind ; if (!argc) strerr_dieusage(100, USAGE) ; - xpathexec_run(argv[0], argv, envp) ; + xexec(argv) ; } -- cgit v1.2.3