chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tree-wide usage of %m specifier instead of strerror(errno)
[elogind.git]
/
src
/
core
/
main.c
diff --git
a/src/core/main.c
b/src/core/main.c
index bc92f65fd6c9d211029aa104ecb31ba05f383030..69d3a43840e1ea20852f43b5af5e9d003c9a62e5 100644
(file)
--- a/
src/core/main.c
+++ b/
src/core/main.c
@@
-131,7
+131,7
@@
_noreturn_ static void crash(int sig) {
pid = fork();
if (pid < 0)
pid = fork();
if (pid < 0)
- log_error("Caught <%s>, cannot fork for core dump: %
s", signal_to_string(sig), strerror(errno
));
+ log_error("Caught <%s>, cannot fork for core dump: %
m", signal_to_string(sig
));
else if (pid == 0) {
struct rlimit rl = {};
else if (pid == 0) {
struct rlimit rl = {};
@@
-1745,7
+1745,7
@@
finish:
* initrd, but don't wait for them, so that we
* can handle the SIGCHLD for them after
* deserializing. */
* initrd, but don't wait for them, so that we
* can handle the SIGCHLD for them after
* deserializing. */
- broadcast_signal(SIGTERM, false);
+ broadcast_signal(SIGTERM, false
, true
);
/* And switch root */
r = switch_root(switch_root_dir);
/* And switch root */
r = switch_root(switch_root_dir);