summaryrefslogtreecommitdiff
path: root/usr.bin/sndiod/sock.c
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2015-12-07 11:58:30 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2015-12-07 11:58:30 +0000
commitc33eedceb35ef7059b65df759f9a9532c7dd9d39 (patch)
tree8635d1b229558a823886d595f360df7e8f8af1e1 /usr.bin/sndiod/sock.c
parentd168ef8fbaf7a045136d58abbabe59665499a9eb (diff)
reset the slowaccept flag in sock_close()
Diffstat (limited to 'usr.bin/sndiod/sock.c')
-rw-r--r--usr.bin/sndiod/sock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/sndiod/sock.c b/usr.bin/sndiod/sock.c
index 5973946e4b0..c9446170d4b 100644
--- a/usr.bin/sndiod/sock.c
+++ b/usr.bin/sndiod/sock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sock.c,v 1.15 2015/02/16 06:35:17 ratchov Exp $ */
+/* $OpenBSD: sock.c,v 1.16 2015/12/07 11:58:29 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@ -152,6 +152,7 @@ sock_close(struct sock *f)
}
file_del(f->file);
close(f->fd);
+ file_slowaccept = 0;
xfree(f);
}