Changed files:
sysvinit-alt-fixes.patch -> 1.2
int fd;
if (strchr("S0123456",runlevel) == NULL)
int fd;
if (strchr("S0123456",runlevel) == NULL)
-@@ -1882,11 +1885,13 @@ void re_exec(void)
- * The existing init process execs a new init binary.
- */
- env = init_buildenv(0);
- * The existing init process execs a new init binary.
- */
- env = init_buildenv(0);
-- execle(myname, myname, "--init", NULL, env);
+- execl(myname, myname, "--init", NULL, env);
+ if (pid > 0) {
+ /*
+ * The existing init process execs a new init binary.
+ */
+ env = init_buildenv(0);
+ if (pid > 0) {
+ /*
+ * The existing init process execs a new init binary.
+ */
+ env = init_buildenv(0);
-+ execle(myname, myname, "--init", NULL, env);
++ execl(myname, myname, "--init", NULL, env);