=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/aucat/aucat.c,v retrieving revision 1.35 retrieving revision 1.36 diff -u -r1.35 -r1.36 --- src/usr.bin/aucat/aucat.c 2008/11/10 23:25:37 1.35 +++ src/usr.bin/aucat/aucat.c 2008/11/11 12:56:02 1.36 @@ -1,4 +1,4 @@ -/* $OpenBSD: aucat.c,v 1.35 2008/11/10 23:25:37 ratchov Exp $ */ +/* $OpenBSD: aucat.c,v 1.36 2008/11/11 12:56:02 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -502,6 +502,8 @@ } if (!file_poll()) break; + if (!l_flag) + continue; if ((!dev_mix || dev_mix->u.mix.idle > 2 * dev_bufsz) && (!dev_sub || dev_sub->u.sub.idle > 2 * dev_bufsz)) { if (!suspend) { @@ -525,7 +527,8 @@ suspend = 0; dev_start(); } - dev_done(); + if (l_flag) + dev_done(); filelist_done(); sigfillset(&sa.sa_mask);