From d2ec252e2fd05da0cfbe4cf71fe558dd65bdd2b6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 13 Nov 2007 10:05:51 +0000 Subject: [PATCH] - adjust to our source Changed files: sysvinit-alt-fixes.patch -> 1.2 --- sysvinit-alt-fixes.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sysvinit-alt-fixes.patch b/sysvinit-alt-fixes.patch index 9cffa2a..f891d88 100644 --- a/sysvinit-alt-fixes.patch +++ b/sysvinit-alt-fixes.patch @@ -42,7 +42,7 @@ diff -upk.orig sysvinit-2.86.orig/src/init.c sysvinit-2.86/src/init.c int fd; if (strchr("S0123456",runlevel) == NULL) -@@ -1882,11 +1885,13 @@ void re_exec(void) +@@ -1885,11 +1885,13 @@ exit(0); } @@ -50,13 +50,13 @@ diff -upk.orig sysvinit-2.86.orig/src/init.c sysvinit-2.86/src/init.c - * 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); -+ execle(myname, myname, "--init", NULL, env); ++ execl(myname, myname, "--init", NULL, env); + } /* -- 2.43.0