[dovecot-cvs] dovecot/src/auth main.c,1.5,1.6
cras at procontrol.fi
cras at procontrol.fi
Tue Nov 26 15:27:15 EET 2002
Update of /home/cvs/dovecot/src/auth
In directory danu:/tmp/cvs-serv16165/auth
Modified Files:
main.c
Log Message:
net_accept() returns now -2 for fatal failures.
Index: main.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/main.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- main.c 15 Oct 2002 20:53:16 -0000 1.5
+++ main.c 26 Nov 2002 13:27:13 -0000 1.6
@@ -31,8 +31,12 @@
int fd;
fd = net_accept(listen_fd, NULL, NULL);
- if (fd != -1)
+ if (fd < 0) {
+ if (fd < -1)
+ i_fatal("accept() failed: %m");
+ } else {
(void)login_connection_create(fd);
+ }
}
static void main_init(void)
More information about the dovecot-cvs
mailing list