=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/aucat/abuf.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- src/usr.bin/aucat/abuf.c 2009/07/25 10:52:18 1.13 +++ src/usr.bin/aucat/abuf.c 2009/08/21 16:48:03 1.14 @@ -1,4 +1,4 @@ -/* $OpenBSD: abuf.c,v 1.13 2009/07/25 10:52:18 ratchov Exp $ */ +/* $OpenBSD: abuf.c,v 1.14 2009/08/21 16:48:03 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -105,8 +105,17 @@ buf->duplex->duplex = NULL; #ifdef DEBUG if (buf->rproc || buf->wproc || ABUF_ROK(buf)) { + /* + * XXX : we should call abort(), here. + * However, poll() doesn't seem to return POLLHUP, + * so the reader is never destroyed; instead it appears + * as blocked. Fix file_poll(), if fixable, and add + * a call to abord() here. + */ +#if 0 ABUF_DPRN(0, buf, "abuf_del: used = %u\n", buf->used); abort(); +#endif } #endif free(buf);