dovecot-2.0: pgsql: Avoid epoll_ctl() errors when closing connec...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Sep 24 20:36:25 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/68c44e8740a2
changeset: 12176:68c44e8740a2
user: Timo Sirainen <tss at iki.fi>
date: Fri Sep 24 18:36:22 2010 +0100
description:
pgsql: Avoid epoll_ctl() errors when closing connection.
diffstat:
src/lib-sql/driver-pgsql.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r c7a5d25dceb6 -r 68c44e8740a2 src/lib-sql/driver-pgsql.c
--- a/src/lib-sql/driver-pgsql.c Fri Sep 24 18:14:16 2010 +0100
+++ b/src/lib-sql/driver-pgsql.c Fri Sep 24 18:36:22 2010 +0100
@@ -97,10 +97,11 @@
db->io_dir = 0;
db->fatal_error = FALSE;
+ driver_pgsql_stop_io(db);
+
PQfinish(db->pg);
db->pg = NULL;
- driver_pgsql_stop_io(db);
if (db->to_connect != NULL)
timeout_remove(&db->to_connect);
More information about the dovecot-cvs
mailing list