Always call ttwwakeup() before returning from comstart(). It isn't

necessary to call it when the tty layer's output state has not been
changed, but siostop() sometimes changes the TS_BUSY state and then
calls comstart() mainly for its side effect of calling ttwwakeup().
This commit is contained in:
bde 1997-12-28 06:20:47 +00:00
parent d9b1a3f03e
commit 195ff4c3e0
3 changed files with 6 additions and 3 deletions

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
* $Id: sio.c,v 1.190 1997/12/06 13:23:04 bde Exp $
* $Id: sio.c,v 1.191 1997/12/16 17:40:07 eivind Exp $
*/
#include "opt_comconsole.h"
@ -2199,6 +2199,7 @@ comstart(tp)
}
enable_intr();
if (tp->t_state & (TS_TIMEOUT | TS_TTSTOP)) {
ttwwakeup(tp);
splx(s);
return;
}

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
* $Id: sio.c,v 1.190 1997/12/06 13:23:04 bde Exp $
* $Id: sio.c,v 1.191 1997/12/16 17:40:07 eivind Exp $
*/
#include "opt_comconsole.h"
@ -2199,6 +2199,7 @@ comstart(tp)
}
enable_intr();
if (tp->t_state & (TS_TIMEOUT | TS_TTSTOP)) {
ttwwakeup(tp);
splx(s);
return;
}

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
* $Id: sio.c,v 1.190 1997/12/06 13:23:04 bde Exp $
* $Id: sio.c,v 1.191 1997/12/16 17:40:07 eivind Exp $
*/
#include "opt_comconsole.h"
@ -2199,6 +2199,7 @@ comstart(tp)
}
enable_intr();
if (tp->t_state & (TS_TIMEOUT | TS_TTSTOP)) {
ttwwakeup(tp);
splx(s);
return;
}