handle ECONNABORTED.
Submitted by: morito@double-fault.net Obtained from: KAME MFC after: 3 days
This commit is contained in:
parent
a82580a668
commit
5efd20ae96
@ -428,7 +428,9 @@ play_service(int s_wld)
|
||||
len = sizeof(srcaddr);
|
||||
s_src = accept(s_wld, (struct sockaddr *)&srcaddr,
|
||||
&len);
|
||||
if (s_src == -1) {
|
||||
if (s_src < 0) {
|
||||
if (errno == ECONNABORTED)
|
||||
goto again;
|
||||
exit_failure("socket: %s", strerror(errno));
|
||||
/*NOTREACHED*/
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user