Mercurial > dovecot > core-2.2
changeset 3624:d53d0de2ffbb HEAD
ioloop needs to be created before setting signals or we crash
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 28 Sep 2005 16:26:03 +0300 |
parents | 085ebc6e341c |
children | 04e62fc6230f |
files | src/deliver/deliver.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/deliver/deliver.c Tue Sep 27 22:49:59 2005 +0300 +++ b/src/deliver/deliver.c Wed Sep 28 16:26:03 2005 +0300 @@ -353,11 +353,12 @@ const char *str; lib_init(); + ioloop = io_loop_create(default_pool); + lib_signals_init(); lib_signals_set_handler(SIGINT, TRUE, sig_die, NULL); lib_signals_set_handler(SIGTERM, TRUE, sig_die, NULL); lib_signals_set_handler(SIGPIPE, FALSE, NULL, NULL); - ioloop = io_loop_create(default_pool); destination = NULL; for (i = 1; i < argc; i++) {