summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-09 21:56:35 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-09 21:56:35 +0100
commit951f9649019ffece6c3b200e51089f41f93e65f2 (patch)
treeb7f76a0eb1e7da96382634733bb6903f351ea82c /src/main.c
parent6dd83c3d1009dcacd75fef9e503294bd48f2cf7f (diff)
downloadrspamd-951f9649019ffece6c3b200e51089f41f93e65f2.tar.gz
rspamd-951f9649019ffece6c3b200e51089f41f93e65f2.zip
Die if some workers couldn't start.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index fb9ec3470..eb90be09e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -699,6 +699,12 @@ spawn_workers (struct rspamd_main *rspamd)
}
}
}
+ else {
+ msg_err ("cannot create listen socket for %s at %s",
+ g_quark_to_string (cf->type), cf->bind_conf->name);
+
+ exit (EXIT_FAILURE);
+ }
}
cur = g_list_next (cur);