summaryrefslogtreecommitdiff
path: root/usr.bin/sndiod
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2013-03-13 08:28:35 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2013-03-13 08:28:35 +0000
commit897f184b43458d8f2314efb24e8f4c0611f292e3 (patch)
tree9967f60a47cef50d31c8d179f2ccff227c61c147 /usr.bin/sndiod
parent86b238d35daf9f592dfbb8ba4ef344e6eabb886a (diff)
don't display warnings if accept() returns ECONNABORTED or
EWOULDBLOCK, as we do in other daemons
Diffstat (limited to 'usr.bin/sndiod')
-rw-r--r--usr.bin/sndiod/listen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sndiod/listen.c b/usr.bin/sndiod/listen.c
index e76b6437dca..2c9195e8acf 100644
--- a/usr.bin/sndiod/listen.c
+++ b/usr.bin/sndiod/listen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: listen.c,v 1.1 2012/11/23 07:03:28 ratchov Exp $ */
+/* $OpenBSD: listen.c,v 1.2 2013/03/13 08:28:33 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -243,7 +243,7 @@ listen_in(void *arg)
continue;
if (errno == ENFILE || errno == EMFILE)
file_slowaccept = 1;
- else
+ else if (errno != ECONNABORTED && errno != EWOULDBLOCK)
perror("accept");
return;
}