git://git.exim.org
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ca261bd
)
Re-fix non-Linux build
author
Jeremy Harris
<jgh146exb@wizmail.org>
Mon, 7 Jun 2021 17:47:14 +0000
(18:47 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Mon, 7 Jun 2021 17:47:14 +0000
(18:47 +0100)
src/src/daemon.c
patch
|
blob
|
history
diff --git
a/src/src/daemon.c
b/src/src/daemon.c
index 548daf0ac0bdbd343df4e472f54aa749872279f2..c71bde09768f6bde4a1c30dc9da3b3463380ef27 100644
(file)
--- a/
src/src/daemon.c
+++ b/
src/src/daemon.c
@@
-2504,7
+2504,7
@@
for (;;)
if (FD_ISSET(lfd, &fds))
{
EXIM_SOCKLEN_T alen = sizeof(accepted);
if (FD_ISSET(lfd, &fds))
{
EXIM_SOCKLEN_T alen = sizeof(accepted);
-#if
defined(TCP_INFO)
+#if
def TCP_INFO
struct tcp_info ti;
socklen_t tlen = sizeof(ti);
struct tcp_info ti;
socklen_t tlen = sizeof(ti);
@@
-2514,16
+2514,17
@@
for (;;)
if ( smtp_backlog_monitor > 0
&& getsockopt(lfd, IPPROTO_TCP, TCP_INFO, &ti, &tlen) == 0)
{
if ( smtp_backlog_monitor > 0
&& getsockopt(lfd, IPPROTO_TCP, TCP_INFO, &ti, &tlen) == 0)
{
- DEBUG(D_interface) debug_printf("listen fd %d queue max %u curr %u\n",
# ifdef EXIM_HAVE_TCPI_UNACKED
# ifdef EXIM_HAVE_TCPI_UNACKED
+ DEBUG(D_interface) debug_printf("listen fd %d queue max %u curr %u\n",
lfd, ti.tcpi_sacked, ti.tcpi_unacked);
smtp_listen_backlog = ti.tcpi_unacked;
# elif defined(__FreeBSD__) /* This does not work. Investigate kernel sourcecode. */
lfd, ti.tcpi_sacked, ti.tcpi_unacked);
smtp_listen_backlog = ti.tcpi_unacked;
# elif defined(__FreeBSD__) /* This does not work. Investigate kernel sourcecode. */
+ DEBUG(D_interface) debug_printf("listen fd %d queue max %u curr %u\n",
lfd, ti.__tcpi_sacked, ti.__tcpi_unacked);
smtp_listen_backlog = ti.__tcpi_unacked;
# endif
lfd, ti.__tcpi_sacked, ti.__tcpi_unacked);
smtp_listen_backlog = ti.__tcpi_unacked;
# endif
-#endif
}
}
+#endif
accept_socket = accept(lfd, (struct sockaddr *)&accepted, &alen);
break;
}
accept_socket = accept(lfd, (struct sockaddr *)&accepted, &alen);
break;
}