chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c32e0c4
)
shutdown: use correct kexec options
author
Brett Witherspoon
<spoonb@exherbo.org>
Sat, 15 Jan 2011 03:50:26 +0000
(21:50 -0600)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 18 Jan 2011 23:35:21 +0000
(
00:35
+0100)
The kexec man page is awful and misleading.
src/shutdown.c
patch
|
blob
|
history
diff --git
a/src/shutdown.c
b/src/shutdown.c
index 10d8413092551c6f743aec47f76b8ad7a69350fe..94deb8544106638af98a182788baffb1cce72c2e 100644
(file)
--- 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 */
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;
}
execv(args[0], (char * const *) args);
return EXIT_FAILURE;
}