[dovecot-cvs] dovecot/src/login-common main.c,1.1,1.2
cras at procontrol.fi
cras at procontrol.fi
Thu Jan 30 19:59:34 EET 2003
- Previous message: [dovecot-cvs] dovecot/src/imap main.c,1.21,1.22
- Next message: [dovecot-cvs] dovecot/src/master mail-process.c,NONE,1.1 mail-process.h,NONE,1.1 .cvsignore,1.1.1.1,1.2 Makefile.am,1.7,1.8 auth-process.c,1.30,1.31 common.h,1.11,1.12 login-process.c,1.32,1.33 main.c,1.30,1.31 master-login-interface.h,1.1,1.2 settings.c,1.44,1.45 Message-Id: <20030130175934.4E638239A3@danu.procontrol.fi>
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/dovecot/src/login-common
In directory danu:/tmp/cvs-serv27713/src/login-common
Modified Files:
main.c
Log Message:
Rewrote setting handling. Changed some existing settings also since POP3
support required changes anyway. POP3 seems to be really working now :)
Index: main.c
===================================================================
RCS file: /home/cvs/dovecot/src/login-common/main.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- main.c 28 Jan 2003 21:35:26 -0000 1.1
+++ main.c 30 Jan 2003 17:59:32 -0000 1.2
@@ -20,7 +20,7 @@
unsigned int login_process_uid;
static struct ioloop *ioloop;
-static struct io *io_listen, *io_listen_ssl;
+static struct io *io_listen, *io_ssl_listen;
static int main_refcount;
static int closing_down;
@@ -48,18 +48,18 @@
if (io_listen != NULL) {
if (close(LOGIN_LISTEN_FD) < 0)
- i_fatal("can't close() IMAP listen handle");
+ i_fatal("close(listen) failed: %m");
io_remove(io_listen);
io_listen = NULL;
}
- if (io_listen_ssl != NULL) {
+ if (io_ssl_listen != NULL) {
if (close(LOGIN_SSL_LISTEN_FD) < 0)
- i_fatal("can't close() IMAPS listen handle");
+ i_fatal("close(ssl_listen) failed: %m");
- io_remove(io_listen_ssl);
- io_listen_ssl = NULL;
+ io_remove(io_ssl_listen);
+ io_ssl_listen = NULL;
}
closing_down = TRUE;
@@ -114,7 +114,7 @@
static void open_logfile(const char *name)
{
- if (getenv("IMAP_USE_SYSLOG") != NULL)
+ if (getenv("USE_SYSLOG") != NULL)
i_set_failure_syslog(name, LOG_NDELAY, LOG_MAIL);
else {
/* log to file or stderr */
@@ -167,24 +167,22 @@
auth_connection_init();
clients_init();
- io_listen = io_listen_ssl = NULL;
+ io_listen = io_ssl_listen = NULL;
if (net_getsockname(LOGIN_LISTEN_FD, NULL, NULL) == 0) {
- /* we're listening for imap */
io_listen = io_add(LOGIN_LISTEN_FD, IO_READ,
login_accept, NULL);
}
if (net_getsockname(LOGIN_SSL_LISTEN_FD, NULL, NULL) == 0) {
- /* we're listening for imaps */
if (!ssl_initialized) {
/* this shouldn't happen, master should have
- disabled the imaps socket.. */
+ disabled the ssl socket.. */
i_fatal("BUG: SSL initialization parameters not given "
"while they should have been");
}
- io_listen_ssl = io_add(LOGIN_SSL_LISTEN_FD, IO_READ,
+ io_ssl_listen = io_add(LOGIN_SSL_LISTEN_FD, IO_READ,
login_accept_ssl, NULL);
}
@@ -198,7 +196,7 @@
i_warning("Killed with signal %d", lib_signal_kill);
if (io_listen != NULL) io_remove(io_listen);
- if (io_listen_ssl != NULL) io_remove(io_listen_ssl);
+ if (io_ssl_listen != NULL) io_remove(io_ssl_listen);
clients_deinit();
master_deinit();
- Previous message: [dovecot-cvs] dovecot/src/imap main.c,1.21,1.22
- Next message: [dovecot-cvs] dovecot/src/master mail-process.c,NONE,1.1 mail-process.h,NONE,1.1 .cvsignore,1.1.1.1,1.2 Makefile.am,1.7,1.8 auth-process.c,1.30,1.31 common.h,1.11,1.12 login-process.c,1.32,1.33 main.c,1.30,1.31 master-login-interface.h,1.1,1.2 settings.c,1.44,1.45 Message-Id: <20030130175934.4E638239A3@danu.procontrol.fi>
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list