=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sndiod/listen.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- src/usr.bin/sndiod/listen.c 2015/11/18 08:36:20 1.3 +++ src/usr.bin/sndiod/listen.c 2015/12/14 17:44:29 1.4 @@ -1,4 +1,4 @@ -/* $OpenBSD: listen.c,v 1.3 2015/11/18 08:36:20 ratchov Exp $ */ +/* $OpenBSD: listen.c,v 1.4 2015/12/14 17:44:29 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -218,7 +218,8 @@ { struct listen *f = arg; - if (file_slowaccept) + f->slowaccept = file_slowaccept; + if (f->slowaccept) return 0; pfd->fd = f->fd; pfd->events = POLLIN; @@ -228,6 +229,10 @@ int listen_revents(void *arg, struct pollfd *pfd) { + struct listen *f = arg; + + if (f->slowaccept) + return 0; return pfd->revents; }