]> source.dussan.org Git - rspamd.git/commitdiff
Die if some workers couldn't start.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 9 May 2015 20:56:35 +0000 (21:56 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 9 May 2015 20:56:35 +0000 (21:56 +0100)
src/main.c

index fb9ec34705b843ca43b960d227e2dae97b825638..eb90be09e5117c8fa43ad0f96357b16ac541e468 100644 (file)
@@ -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);