[dovecot-cvs] dovecot/src/lib ioloop-notify-dn.c,1.1,1.2
cras at dovecot.org
cras at dovecot.org
Sun Sep 5 23:29:06 EEST 2004
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv10884
Modified Files:
ioloop-notify-dn.c
Log Message:
Drop F_NOTIFY before setting F_SETSIG back to SIGIO, otherwise we might get
SIGIO and get ourself killed.
Index: ioloop-notify-dn.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ioloop-notify-dn.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ioloop-notify-dn.c 24 Aug 2003 12:43:53 -0000 1.1
+++ ioloop-notify-dn.c 5 Sep 2004 20:29:04 -0000 1.2
@@ -122,10 +122,10 @@
}
}
- if (fcntl(io->fd, F_SETSIG, 0) < 0)
- i_error("fcntl(F_SETSIG, 0) failed: %m");
if (fcntl(io->fd, F_NOTIFY, 0) < 0)
i_error("fcntl(F_NOTIFY, 0) failed: %m");
+ if (fcntl(io->fd, F_SETSIG, 0) < 0)
+ i_error("fcntl(F_SETSIG, 0) failed: %m");
p_free(ioloop->pool, io);
More information about the dovecot-cvs
mailing list