projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
curproc is null if no one is running, but ignore curproc unless wait is true
[unix-history]
/
usr
/
src
/
sys
/
kern
/
tty.c
diff --git
a/usr/src/sys/kern/tty.c
b/usr/src/sys/kern/tty.c
index
8c26a1f
..
02dd8ea
100644
(file)
--- a/
usr/src/sys/kern/tty.c
+++ b/
usr/src/sys/kern/tty.c
@@
-5,7
+5,7
@@
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)tty.c 7.4
4
(Berkeley) %G%
+ * @(#)tty.c 7.4
5
(Berkeley) %G%
*/
#include "param.h"
*/
#include "param.h"
@@
-1200,7
+1200,8
@@
ttycheckoutq(tp, wait)
hiwat = tp->t_hiwat;
s = spltty();
hiwat = tp->t_hiwat;
s = spltty();
- oldsig = curproc->p_sig;
+ if (wait)
+ oldsig = curproc->p_sig;
if (tp->t_outq.c_cc > hiwat + 200)
while (tp->t_outq.c_cc > hiwat) {
ttstart(tp);
if (tp->t_outq.c_cc > hiwat + 200)
while (tp->t_outq.c_cc > hiwat) {
ttstart(tp);