Mercurial > dovecot > original-hg > dovecot-1.1
comparison src/lib/fd-close-on-exec.c @ 8355:298d58ab6e2c HEAD
fd_debug_verify_leaks() didn't check the last_fd.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 30 Sep 2009 08:52:12 -0400 |
parents | c89688a4e15f |
children |
comparison
equal
deleted
inserted
replaced
8354:d38e81d625ba | 8355:298d58ab6e2c |
---|---|
27 struct ip_addr addr, raddr; | 27 struct ip_addr addr, raddr; |
28 unsigned int port, rport; | 28 unsigned int port, rport; |
29 struct stat st; | 29 struct stat st; |
30 int old_errno; | 30 int old_errno; |
31 | 31 |
32 for (; first_fd < last_fd; first_fd++) { | 32 for (; first_fd <= last_fd; first_fd++) { |
33 if (fcntl(first_fd, F_GETFD, 0) == -1 && errno == EBADF) | 33 if (fcntl(first_fd, F_GETFD, 0) == -1 && errno == EBADF) |
34 continue; | 34 continue; |
35 | 35 |
36 old_errno = errno; | 36 old_errno = errno; |
37 | 37 |