From 4fa4331d3e7b39ce015d65b4bcc68f7e0fdd6d0a Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Tue, 27 Oct 2009 22:24:28 +0000 Subject: set the THRU_AUTOQUIT flag only for ``thru'' devices --- usr.bin/aucat/dev.c | 5 +++-- 1 file 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 * @@ -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 && -- cgit v1.2.3