[dovecot-cvs] dovecot/src/lib ostream-file.c,1.59,1.60
cras at dovecot.org
cras at dovecot.org
Sun Jan 29 14:14:51 EET 2006
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv19474/lib
Modified Files:
ostream-file.c
Log Message:
Call io_remove() before closing the fd. It's required by kqueue.
Index: ostream-file.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ostream-file.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- ostream-file.c 14 Jan 2006 18:47:22 -0000 1.59
+++ ostream-file.c 29 Jan 2006 12:14:47 -0000 1.60
@@ -51,15 +51,15 @@
static void stream_closed(struct file_ostream *fstream)
{
+ if (fstream->io != NULL)
+ io_remove(&fstream->io);
+
if (fstream->autoclose_fd && fstream->fd != -1) {
if (close(fstream->fd) < 0)
i_error("file_ostream.close() failed: %m");
fstream->fd = -1;
}
- if (fstream->io != NULL)
- io_remove(&fstream->io);
-
fstream->ostream.ostream.closed = TRUE;
}
More information about the dovecot-cvs
mailing list