summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-11-05 18:13:07 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-11-05 18:13:07 +0300
commitb37ea339a0033271beb521125b3c239556150df4 (patch)
tree3fe3c7ed5c70648b4570dede377fa9ef9f289c55 /src/main.c
parent9b6b141a936bb7ba89c431176fa53a5878b8a9bd (diff)
downloadrspamd-b37ea339a0033271beb521125b3c239556150df4.tar.gz
rspamd-b37ea339a0033271beb521125b3c239556150df4.zip
* SI_ code macroses are not BSD compatible, avoid using them
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c26
1 files changed, 2 insertions, 24 deletions
diff --git a/src/main.c b/src/main.c
index df3945ae1..994d6c2cc 100644
--- a/src/main.c
+++ b/src/main.c
@@ -115,27 +115,6 @@ sig_handler (int signo, siginfo_t *info, void *unused)
#ifdef HAVE_SA_SIGINFO
static const char *
-strsigcode (int code)
-{
- switch (code) {
- case SI_USER:
- return "kill(2) or raise(3)";
- break;
- case SI_KERNEL:
- return "sent by the kernel";
- break;
- case SI_TIMER:
- return "POSIX timer expired";
- break;
- case SI_SIGIO:
- return "queued SIGIO";
- break;
- default:
- return "unknown reason";
- }
-}
-
-static const char *
chldsigcode (int code) {
switch (code) {
case CLD_EXITED:
@@ -163,9 +142,8 @@ print_signals_info ()
(long int)inf->si_pid, chldsigcode (inf->si_code));
}
else {
- msg_info ("main: got signal: '%s'; received from pid: %ld; uid: %ld; reason: '%s'",
- g_strsignal (inf->si_signo), (long int)inf->si_pid, (long int)inf->si_uid,
- strsigcode (inf->si_code));
+ msg_info ("main: got signal: '%s'; received from pid: %ld; uid: %ld",
+ g_strsignal (inf->si_signo), (long int)inf->si_pid, (long int)inf->si_uid);
}
g_free (inf);
}