Mercurial > dovecot > original-hg > dovecot-1.2
changeset 2568:69f1ba731c84 HEAD
Drop F_NOTIFY before setting F_SETSIG back to SIGIO, otherwise we might get
SIGIO and get ourself killed.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 05 Sep 2004 23:29:04 +0300 |
parents | 6c802bcb957e |
children | 554f1324a435 |
files | src/lib/ioloop-notify-dn.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/ioloop-notify-dn.c Sun Sep 05 23:17:33 2004 +0300 +++ b/src/lib/ioloop-notify-dn.c Sun Sep 05 23:29:04 2004 +0300 @@ -122,10 +122,10 @@ } } + 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"); - if (fcntl(io->fd, F_NOTIFY, 0) < 0) - i_error("fcntl(F_NOTIFY, 0) failed: %m"); p_free(ioloop->pool, io);