summaryrefslogtreecommitdiff
path: root/term
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-04-23 18:27:31 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-04-23 18:27:31 +0000
commit5204309990cb2f209d6a52151f0113a183c20bb4 (patch)
treef0cadf556d90479312ae14eb762ce2a43fcb1cdd /term
parent415b40a63a40779bcede8b022a398163999ef84a (diff)
(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.
Diffstat (limited to 'term')
-rw-r--r--term/term.h13
1 files changed, 11 insertions, 2 deletions
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);