summaryrefslogtreecommitdiff
path: root/src/manager.c
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2011-09-23 09:39:40 +0200
committerMichal Schmidt <mschmidt@redhat.com>2011-09-23 10:30:19 +0200
commit4e240ab0c93f4d454b065eef7074132969ac6f16 (patch)
tree9b25619b52b70a6ac2c78b34aaeda998fe36deb7 /src/manager.c
parent764e9b5f073e1d5216de150045ec85475835fe3c (diff)
util: improve signal_to_string, signal_from_string
signal_to_string: Produce names for SIGRTMIN+n. Never give an "n/a" result. In the worst case give the number itself as a string. signal_from_string: Parse "RTMIN+n". Parse any valid signal number.
Diffstat (limited to 'src/manager.c')
-rw-r--r--src/manager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/manager.c b/src/manager.c
index cf308ac4d3..7ce1b3bab3 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -2111,11 +2111,11 @@ static int manager_process_signal_fd(Manager *m) {
get_process_name(sfsi.ssi_pid, &p);
log_debug("Received SIG%s from PID %lu (%s).",
- strna(signal_to_string(sfsi.ssi_signo)),
+ signal_to_string(sfsi.ssi_signo),
(unsigned long) sfsi.ssi_pid, strna(p));
free(p);
} else
- log_debug("Received SIG%s.", strna(signal_to_string(sfsi.ssi_signo)));
+ log_debug("Received SIG%s.", signal_to_string(sfsi.ssi_signo));
switch (sfsi.ssi_signo) {
@@ -2283,7 +2283,7 @@ static int manager_process_signal_fd(Manager *m) {
break;
default:
- log_warning("Got unhandled signal <%s>.", strna(signal_to_string(sfsi.ssi_signo)));
+ log_warning("Got unhandled signal <%s>.", signal_to_string(sfsi.ssi_signo));
}
}
}