mirror of https://github.com/ericonr/sndio.git
don't warn on ECONNABORTED
This commit is contained in:
parent
ca804a9ffe
commit
280f58c39a
|
@ -191,7 +191,7 @@ listen_revents(struct file *file, struct pollfd *pfd)
|
|||
continue;
|
||||
if (errno == ENFILE || errno == EMFILE)
|
||||
file_slowaccept = 1;
|
||||
else
|
||||
else if (errno != ECONNABORTED && errno != EWOULDBLOCK)
|
||||
perror("accept");
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -244,7 +244,7 @@ listen_in(void *arg)
|
|||
continue;
|
||||
if (errno == ENFILE || errno == EMFILE)
|
||||
file_slowaccept = 1;
|
||||
else
|
||||
else if (errno != ECONNABORTED && errno != EWOULDBLOCK)
|
||||
perror("accept");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue