summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2009-10-27 22:24:28 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2009-10-27 22:24:28 +0000
commit4fa4331d3e7b39ce015d65b4bcc68f7e0fdd6d0a (patch)
tree538e7d6e458ba9d8273d70c3d7f12c27fdc5a12f /usr.bin
parent4528b6b704281f1bef57fea04db277539239a120 (diff)
set the THRU_AUTOQUIT flag only for ``thru'' devices
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/aucat/dev.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/aucat/dev.c b/usr.bin/aucat/dev.c
index 0e21398b0c0..d1c317fd6b4 100644
--- a/usr.bin/aucat/dev.c
+++ b/usr.bin/aucat/dev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev.c,v 1.34 2009/10/10 12:43:09 ratchov Exp $ */
+/* $OpenBSD: dev.c,v 1.35 2009/10/27 22:24:27 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -238,7 +238,8 @@ dev_done(void)
struct file *f;
if (dev_midi) {
- dev_midi->u.mix.flags |= THRU_AUTOQUIT;
+ if (!dev_sub && !dev_mix)
+ dev_midi->u.thru.flags |= THRU_AUTOQUIT;
restart_midi:
LIST_FOREACH(f, &file_list, entry) {
if (f->rproc &&