chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemctl: show exec status of all exited programs
[elogind.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index 8717b8a968085693222e924c45ddba6391af133c..9f2a569029b5b91cad3ca92eafc50e6288be5354 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-76,7
+76,7
@@
static void nop_handler(int sig) {
_noreturn_ static void crash(int sig) {
if (!arg_dump_core)
_noreturn_ static void crash(int sig) {
if (!arg_dump_core)
- log_error("Caught <%s>, not dumping core.", s
trsignal
(sig));
+ log_error("Caught <%s>, not dumping core.", s
ignal_to_string
(sig));
else {
struct sigaction sa;
pid_t pid;
else {
struct sigaction sa;
pid_t pid;
@@
-88,7
+88,7
@@
_noreturn_ static void crash(int sig) {
assert_se(sigaction(SIGCHLD, &sa, NULL) == 0);
if ((pid = fork()) < 0)
assert_se(sigaction(SIGCHLD, &sa, NULL) == 0);
if ((pid = fork()) < 0)
- log_error("Caught <%s>, cannot fork for core dump: %s", s
trsignal
(sig), strerror(errno));
+ log_error("Caught <%s>, cannot fork for core dump: %s", s
ignal_to_string
(sig), strerror(errno));
else if (pid == 0) {
struct rlimit rl;
else if (pid == 0) {
struct rlimit rl;
@@
-118,11
+118,11
@@
_noreturn_ static void crash(int sig) {
/* Order things nicely. */
if ((r = waitpid(pid, &status, 0)) < 0)
/* Order things nicely. */
if ((r = waitpid(pid, &status, 0)) < 0)
- log_error("Caught <%s>, waitpid() failed: %s", s
trsignal
(sig), strerror(errno));
+ log_error("Caught <%s>, waitpid() failed: %s", s
ignal_to_string
(sig), strerror(errno));
else if (!WCOREDUMP(status))
else if (!WCOREDUMP(status))
- log_error("Caught <%s>, core dump failed.", s
trsignal
(sig));
+ log_error("Caught <%s>, core dump failed.", s
ignal_to_string
(sig));
else
else
- log_error("Caught <%s>, dumped core as pid %lu.", s
trsignal
(sig), (unsigned long) pid);
+ log_error("Caught <%s>, dumped core as pid %lu.", s
ignal_to_string
(sig), (unsigned long) pid);
}
}
}
}