Bug#989122: exim4: takes 10 seconds to accept connections after waking up on another network

Rémi Letot hobbes at poukram.net
Wed May 26 22:52:10 BST 2021


here comes the strace:

------------
hobbes at sphax:~$ sudo strace -p 671890
strace: Process 671890 attached
select(6, [3 4 5], NULL, NULL, NULL

waits here before I send the mail

)    = 1 (in [5])
wait4(-1, 0x7ffd5fdf4034, WNOHANG, NULL) = -1 ECHILD (Aucun processus enfant)
accept(5, {sa_family=AF_INET6, sin6_port=htons(50964), sin6_flowinfo=htonl(0), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_scope_id=0}, [28]) = 6
fcntl(6, F_GETFL)                       = 0x2 (flags O_RDWR)
dup(6)                                  = 7
fcntl(7, F_GETFL)                       = 0x2 (flags O_RDWR)
getsockname(6, {sa_family=AF_INET6, sin6_port=htons(25), sin6_flowinfo=htonl(0), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_scope_id=0}, [28]) = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7faf36b64c50) = 706004
close(6)                                = 0
close(7)                                = 0
select(6, [3 4 5], NULL, NULL, NULL

waits 10 seconds here

)    = ? ERESTARTNOHAND (To be restarted if no handler)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=706004, si_uid=104, si_status=0, si_utime=0, si_stime=1} ---
rt_sigaction(SIGCHLD, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7faf372abd60}, NULL, 8) = 0
rt_sigreturn({mask=[]})                 = -1 EINTR (Appel système interrompu)
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 706004
wait4(-1, 0x7ffd5fdf4034, WNOHANG, NULL) = -1 ECHILD (Aucun processus enfant)
rt_sigaction(SIGCHLD, {sa_handler=0x558211694c60, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7faf372abd60}, NULL, 8) = 0
select(6, [3 4 5], NULL, NULL, NULL^Cstrace: Process 671890 detached
 <detached ...>
----------

Tell-me if you need more info.

Thanks,
-- 
Rémi



More information about the Pkg-exim4-maintainers mailing list