handle ECONNABORTED.
Submitted by: morito@double-fault.net Obtained from: KAME MFC after: 3 days
This commit is contained in:
parent
7ad7cdff6f
commit
afb2dc7515
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95359
@ -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