chiark / gitweb /
util: improve signal_to_string, signal_from_string
authorMichal Schmidt <mschmidt@redhat.com>
Fri, 23 Sep 2011 07:39:40 +0000 (09:39 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Fri, 23 Sep 2011 08:30:19 +0000 (10:30 +0200)
commit4e240ab0c93f4d454b065eef7074132969ac6f16
tree9b25619b52b70a6ac2c78b34aaeda998fe36deb7
parent764e9b5f073e1d5216de150045ec85475835fe3c
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.
src/kmsg-syslogd.c
src/manager.c
src/util.c
src/util.h