summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-04-24 13:32:18 +0000
committerMiles Bader <miles@gnu.org>1996-04-24 13:32:18 +0000
commit4e4d38907e41e8db2a9fd32833576fbcc1ec1a91 (patch)
treed1504b0834c2f244b9e38d0523cc6b832d3d42d1
parentd20afc392423cc823663cb6228abda754f1f2526 (diff)
(call_asyncs): Remove FORCE argument; all callers changed.
-rw-r--r--term/users.c23
1 files changed, 7 insertions, 16 deletions
diff --git a/term/users.c b/term/users.c
index c7f02fb5..43b1b212 100644
--- a/term/users.c
+++ b/term/users.c
@@ -217,7 +217,7 @@ po_create_hook (struct trivfs_peropen *po)
{
termflags |= ICKY_ASYNC;
num_icky_async_peropens++;
- call_asyncs (1);
+ call_asyncs ();
}
mutex_unlock (&global_lock);
return 0;
@@ -466,7 +466,7 @@ trivfs_S_io_write (struct trivfs_protid *cred,
trivfs_set_mtime (termctl);
- call_asyncs (1);
+ call_asyncs ();
mutex_unlock (&global_lock);
@@ -604,7 +604,7 @@ trivfs_S_io_read (struct trivfs_protid *cred,
*datalen = cp - *data;
- call_asyncs (1);
+ call_asyncs ();
mutex_unlock (&global_lock);
@@ -1619,7 +1619,7 @@ trivfs_S_io_set_all_openmodes (struct trivfs_protid *cred,
{
termflags |= ICKY_ASYNC;
num_icky_async_peropens++;
- call_asyncs (1);
+ call_asyncs ();
}
mutex_unlock (&global_lock);
@@ -1645,7 +1645,7 @@ trivfs_S_io_set_some_openmodes (struct trivfs_protid *cred,
{
termflags |= ICKY_ASYNC;
num_icky_async_peropens++;
- call_asyncs (1);
+ call_asyncs ();
}
mutex_unlock (&global_lock);
return 0;
@@ -1828,22 +1828,13 @@ report_sig_end ()
}
}
-/* Call all the scheduled async I/O handlers. If FORCE is true then turn off
- SUPPRESS_ASYNC first, otherwise use it to suppress subsequent calls with
- FORCE == 0. */
+/* Call all the scheduled async I/O handlers. */
void
-call_asyncs (int force)
+call_asyncs ()
{
struct async_req *ar, *nxt, **prevp;
mach_port_t err;
- if (force)
- termflags &= ~SUPPRESS_ASYNC;
- else if (termflags & SUPPRESS_ASYNC)
- return;
- else
- termflags |= SUPPRESS_ASYNC;
-
/* If no I/O is possible or nobody wants async
messages, don't bother further. */
if ((!(termflags & ICKY_ASYNC) && !async_requests)