[systemd-commits] src/shutdown.c

Lennart Poettering lennart at kemper.freedesktop.org
Tue Jan 18 15:35:49 PST 2011


 src/shutdown.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f8d0ceb46b8c617abce8eaf99812ca7f4ce1c658
Author: Brett Witherspoon <spoonb at exherbo.org>
Date:   Fri Jan 14 21:50:26 2011 -0600

    shutdown: use correct kexec options
    
    The kexec man page is awful and misleading.

diff --git a/src/shutdown.c b/src/shutdown.c
index 10d8413..94deb85 100644
--- a/src/shutdown.c
+++ b/src/shutdown.c
@@ -349,7 +349,7 @@ int main(int argc, char *argv[]) {
                         log_warning("kexec failed. Falling back to normal reboot.");
                 } else {
                         /* Child */
-                        const char *args[5] = { "/sbin/kexec", "-e", "-f", "-x", NULL };
+                        const char *args[3] = { "/sbin/kexec", "-e", NULL };
                         execv(args[0], (char * const *) args);
                         return EXIT_FAILURE;
                 }



More information about the systemd-commits mailing list