summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/s6-rc-oneshot-run.html2
-rw-r--r--doc/s6-rc-update.html2
-rw-r--r--src/s6-rc/s6-rc-oneshot-run.c3
-rw-r--r--src/s6-rc/s6-rc-update.c3
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. </li>
<li> 4: invalid service database </li>
<li> 100: wrong usage </li>
<li> 111: system call failed </li>
+ <li> 126: cannot exec script </li>
+ <li> 127: cannot exec script: executable not found </li>
<li> other exit codes: returned from the executed <tt>up</tt> or <tt>down</tt> script </li>
</ul>
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. </li>
<li> 10: timed out, and the database was not switched </li>
<li> 100: wrong usage </li>
<li> 111: system call failed </li>
+ <li> 126: cannot exec into s6-rc for the final "up" transition (error other than ENOENT) </li>
+ <li> 127: cannot exec into s6-rc for the final "up" transition (executable not found) </li>
</ul>
<h2> Options </h2>
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) ;
}
}
}