[dovecot-cvs] dovecot/src/master main.c,1.91,1.92
cras at dovecot.org
cras at dovecot.org
Thu Aug 17 21:17:41 EEST 2006
- Previous message: [dovecot-cvs] dovecot/src/master main.c,1.80.2.11,1.80.2.12
- Next message: [dovecot-cvs] dovecot/src/lib ioloop-internal.h, 1.16.2.1, 1.16.2.2 ioloop-kqueue.c, 1.4.2.5, 1.4.2.6 ioloop.c, 1.35, 1.35.2.1 ioloop.h, 1.18, 1.18.2.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/master
In directory talvi:/tmp/cvs-serv2704
Modified Files:
main.c
Log Message:
Cleanup + handle dup() failure.
Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/main.c,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -d -r1.91 -r1.92
--- main.c 10 Aug 2006 18:46:58 -0000 1.91
+++ main.c 17 Aug 2006 18:17:38 -0000 1.92
@@ -426,8 +426,8 @@
if (*fd == -1)
i_fatal("listen(%d) failed: %m", port);
net_set_nonblock(*fd, TRUE);
+ fd_close_on_exec(*fd, TRUE);
}
- fd_close_on_exec(*fd, TRUE);
}
if (set->listen_fd == -1)
@@ -508,6 +508,8 @@
/* make sure all fds between 0..3 are used. */
while (null_fd < 4) {
null_fd = dup(null_fd);
+ if (null_fd == -1)
+ i_fatal("dup(null_fd) failed: %m");
fd_close_on_exec(null_fd, TRUE);
}
- Previous message: [dovecot-cvs] dovecot/src/master main.c,1.80.2.11,1.80.2.12
- Next message: [dovecot-cvs] dovecot/src/lib ioloop-internal.h, 1.16.2.1, 1.16.2.2 ioloop-kqueue.c, 1.4.2.5, 1.4.2.6 ioloop.c, 1.35, 1.35.2.1 ioloop.h, 1.18, 1.18.2.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list