=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/aucat/Attic/midi.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- src/usr.bin/aucat/Attic/midi.c 2009/10/09 16:49:48 1.10 +++ src/usr.bin/aucat/Attic/midi.c 2009/10/10 12:43:09 1.11 @@ -1,4 +1,4 @@ -/* $OpenBSD: midi.c,v 1.10 2009/10/09 16:49:48 ratchov Exp $ */ +/* $OpenBSD: midi.c,v 1.11 2009/10/10 12:43:09 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -225,11 +225,19 @@ void thru_eof(struct aproc *p, struct abuf *ibuf) { + if (!(p->u.thru.flags & THRU_AUTOQUIT)) + return; + if (LIST_EMPTY(&p->obuflist) || LIST_EMPTY(&p->ibuflist)) + aproc_del(p); } void thru_hup(struct aproc *p, struct abuf *obuf) { + if (!(p->u.thru.flags & THRU_AUTOQUIT)) + return; + if (LIST_EMPTY(&p->obuflist) || LIST_EMPTY(&p->ibuflist)) + aproc_del(p); } void