From 5204309990cb2f209d6a52151f0113a183c20bb4 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 23 Apr 1996 18:27:31 +0000 Subject: (dequeue_quote): If this is the outputq, send SIGIO as appropriate with call_asyncs. (enqueue_internal): If this is the inputq, send SIGIO as appropriate with call_asyncs. (call_asyncs): Add decl. --- term/term.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'term') diff --git a/term/term.h b/term/term.h index 67c12080..4e67f4f8 100644 --- a/term/term.h +++ b/term/term.h @@ -189,7 +189,11 @@ dequeue_quote (struct queue *q) if (qsize (q) == 1) beep = 1; if (beep) - condition_broadcast (q->wait); + { + condition_broadcast (q->wait); + if (q == outputq) + call_asyncs (); + } return *q->cs++; } @@ -214,7 +218,11 @@ enqueue_internal (struct queue **qp, quoted_char c) *q->ce++ = c; if (qsize (q) == 1) - condition_broadcast (q->wait); + { + condition_broadcast (q->wait); + if (q == inputq) + call_asyncs (); + } if (!q->susp && (qsize (q) > q->hiwat)) q->susp = 1; @@ -286,6 +294,7 @@ void copy_rawq (void); void rescan_inputq (void); void write_character (int); void init_users (void); +void call_asyncs (void); /* Call this before using ptyio_bottom. */ void ptyio_init (void); -- cgit v1.2.3