handle ECONNABORTED.

Submitted by:	morito@double-fault.net
Obtained from:	KAME
MFC after:	3 days
This commit is contained in:
ume 2002-04-24 12:23:03 +00:00
parent a82580a668
commit 5efd20ae96

View File

@ -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*/
}