From 280f58c39a495ff70ccf307fffedddbda6161aaf Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Wed, 13 Mar 2013 09:35:21 +0100 Subject: [PATCH] don't warn on ECONNABORTED --- aucat/listen.c | 2 +- sndiod/listen.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aucat/listen.c b/aucat/listen.c index b016541..2b48780 100644 --- a/aucat/listen.c +++ b/aucat/listen.c @@ -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; } diff --git a/sndiod/listen.c b/sndiod/listen.c index e80cd8c..5f0ee1c 100644 --- a/sndiod/listen.c +++ b/sndiod/listen.c @@ -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; }