summaryrefslogtreecommitdiff
path: root/term
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-04-24 13:31:50 +0000
committerMiles Bader <miles@gnu.org>1996-04-24 13:31:50 +0000
commitd20afc392423cc823663cb6228abda754f1f2526 (patch)
treeed5349eec6ea0c5d688e29bf4bba54ee6a4517c7 /term
parent19cb21119f4656d876e51269a78d64763be13878 (diff)
(enqueue_internal): Go back to only using call_asyncs when inputq becomes
non-empty. (SUPPRESS_ASYNC): Flag removed.
Diffstat (limited to 'term')
-rw-r--r--term/term.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/term/term.h b/term/term.h
index e8c46526..fbeabf00 100644
--- a/term/term.h
+++ b/term/term.h
@@ -66,7 +66,6 @@ long termflags;
#define EXCL_USE 0x00000100 /* user accessible exclusive use */
#define NO_OWNER 0x00000200 /* there is no foreground_id */
#define ICKY_ASYNC 0x00000400 /* some user has set O_ASYNC */
-#define SUPPRESS_ASYNC 0x00000800 /* don't signal asyncs on every char */
/* Global lock */
struct mutex global_lock;
@@ -175,7 +174,7 @@ clear_queue (struct queue *q)
}
/* Should be below, but inlines need it. */
-void call_asyncs (int force);
+void call_asyncs ();
/* Return the next character off Q; leave the quoting bit on. */
extern inline quoted_char
@@ -195,7 +194,7 @@ dequeue_quote (struct queue *q)
{
condition_broadcast (q->wait);
if (q == outputq)
- call_asyncs (1);
+ call_asyncs ();
}
return *q->cs++;
}
@@ -221,9 +220,11 @@ enqueue_internal (struct queue **qp, quoted_char c)
*q->ce++ = c;
if (qsize (q) == 1)
- condition_broadcast (q->wait);
- if (q == inputq && (termflags & ICKY_ASYNC))
- call_asyncs (0);
+ {
+ condition_broadcast (q->wait);
+ if (q == inputq)
+ call_asyncs ();
+ }
if (!q->susp && (qsize (q) > q->hiwat))
q->susp = 1;