[dovecot-cvs] dovecot/src/master auth-process.c, 1.90, 1.91 log.c, 1.6, 1.7

cras at dovecot.org cras at dovecot.org
Sun Feb 26 12:05:30 EET 2006


Update of /var/lib/cvs/dovecot/src/master
In directory talvi:/tmp/cvs-serv5842/master

Modified Files:
	auth-process.c log.c 
Log Message:
Added i_stream_destroy() and o_stream_destroy() and used them instead of
*_stream_unref() where possible. Fixes at least one problem with io_remove()
being called after socket was closed, which caused problems with epoll.



Index: auth-process.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/auth-process.c,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -d -r1.90 -r1.91
--- auth-process.c	20 Feb 2006 13:15:03 -0000	1.90
+++ auth-process.c	26 Feb 2006 10:05:27 -0000	1.91
@@ -355,8 +355,8 @@
 	hash_iterate_deinit(iter);
 	hash_destroy(p->requests);
 
-	i_stream_unref(&p->input);
-	o_stream_unref(&p->output);
+	i_stream_destroy(&p->input);
+	o_stream_destroy(&p->output);
 	io_remove(&p->io);
 	if (close(p->fd) < 0)
 		i_error("close(auth) failed: %m");

Index: log.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/log.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- log.c	14 Jan 2006 18:48:02 -0000	1.6
+++ log.c	26 Feb 2006 10:05:27 -0000	1.7
@@ -217,7 +217,7 @@
 		io_remove(&log_io->io);
 	else
 		throttle_count--;
-	i_stream_unref(&log_io->stream);
+	i_stream_destroy(&log_io->stream);
 	i_free(log_io->prefix);
 	i_free(log_io);
 }



More information about the dovecot-cvs mailing list