]> git.pld-linux.org Git - packages/SysVinit.git/commitdiff
- adjust to our source
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 13 Nov 2007 10:05:51 +0000 (10:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    sysvinit-alt-fixes.patch -> 1.2

sysvinit-alt-fixes.patch

index 9cffa2ab59ed952e96202797e2b770a9f2de228b..f891d88b74fd228d4ac8c34722de97f88e6e11c7 100644 (file)
@@ -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)
        int             fd;
  
        if (strchr("S0123456",runlevel) == NULL)
-@@ -1882,11 +1885,13 @@ void re_exec(void)
+@@ -1885,11 +1885,13 @@
                exit(0);
        }
  
                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);
 -       *      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);
 +      }
  
        /*
 +      }
  
        /*
This page took 0.041187 seconds and 4 git commands to generate.