From abb7c490bcb70cbfbf909e36ea908bcdf81ddf95 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 22 Aug 2017 15:31:56 +0000 Subject: More conversion to xpathexec --- doc/s6-rc-oneshot-run.html | 2 ++ doc/s6-rc-update.html | 2 ++ src/s6-rc/s6-rc-oneshot-run.c | 3 +-- src/s6-rc/s6-rc-update.c | 3 +-- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/s6-rc-oneshot-run.html b/doc/s6-rc-oneshot-run.html index 49ed63b..0a1aa35 100644 --- a/doc/s6-rc-oneshot-run.html +++ b/doc/s6-rc-oneshot-run.html @@ -63,6 +63,8 @@ is currently in use.
  • 4: invalid service database
  • 100: wrong usage
  • 111: system call failed
  • +
  • 126: cannot exec script
  • +
  • 127: cannot exec script: executable not found
  • other exit codes: returned from the executed up or down script
  • diff --git a/doc/s6-rc-update.html b/doc/s6-rc-update.html index 165f8de..6c23975 100644 --- a/doc/s6-rc-update.html +++ b/doc/s6-rc-update.html @@ -69,6 +69,8 @@ live compiled service database.
  • 10: timed out, and the database was not switched
  • 100: wrong usage
  • 111: system call failed
  • +
  • 126: cannot exec into s6-rc for the final "up" transition (error other than ENOENT)
  • +
  • 127: cannot exec into s6-rc for the final "up" transition (executable not found)
  • Options

    diff --git a/src/s6-rc/s6-rc-oneshot-run.c b/src/s6-rc/s6-rc-oneshot-run.c index 9b48a33..9cbcca9 100644 --- a/src/s6-rc/s6-rc-oneshot-run.c +++ b/src/s6-rc/s6-rc-oneshot-run.c @@ -98,8 +98,7 @@ int main (int argc, char const *const *argv, char const *const *envp) char const **p = newargv ; while (sargc--) *p++ = *sargv++ ; *p = 0 ; - pathexec0_run(newargv, envp) ; - strerr_dieexec(111, newargv[0]) ; + xpathexec0_run(newargv, envp) ; } } } diff --git a/src/s6-rc/s6-rc-update.c b/src/s6-rc/s6-rc-update.c index 5f4d25e..a6e7cfe 100644 --- a/src/s6-rc/s6-rc-update.c +++ b/src/s6-rc/s6-rc-update.c @@ -839,8 +839,7 @@ int main (int argc, char const *const *argv, char const *const *envp) newargv[m++] = 0 ; if (verbosity >= 2) strerr_warni1x("starting services in the new database") ; - pathexec_run(newargv[0], newargv, envp) ; - strerr_dieexec(111, newargv[0]) ; + xpathexec_run(newargv[0], newargv, envp) ; } } } -- cgit v1.2.3