summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-11-27 18:18:28 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-11-27 18:18:28 +0000
commit79b95307cbfb4c1f510fa78fa5c0ef93e9a289a1 (patch)
tree0aad26d20b232635757dd76d5f1322a10eae56f8
parent1bef69eca3daf1d0d84aa99f7db8050f09879449 (diff)
Nil.
-rw-r--r--term/devio.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/term/devio.c b/term/devio.c
index e24e34fb..4abb3282 100644
--- a/term/devio.c
+++ b/term/devio.c
@@ -189,7 +189,6 @@ bogus_speed_to_real_speed (int bspeed)
}
}
-
/* If there are characters on the output queue and no
pending output requests, then send them. */
void
@@ -222,7 +221,7 @@ start_output ()
whee.... */
err = device_write_request_inband (phys_device, phys_reply_writes, D_NOWAIT,
0, pending_output, npending_output);
-
+
if (err == MACH_SEND_INVALID_DEST)
desert_dtr ();
else if (!err)
@@ -296,11 +295,12 @@ device_read_reply_inband (mach_port_t replypt,
mutex_unlock (&global_lock);
return 0;
}
-
+
/* D_NOWAIT does not actually prevent blocks; it merely causes
D_WOULD_BLOCK errors when carrier drops. */
err = device_read_request_inband (phys_device, phys_reply, D_NOWAIT,
0, vm_page_size);
+
if (err)
desert_dtr ();
else
@@ -444,6 +444,7 @@ device_open_reply (mach_port_t replyport,
err = device_read_request_inband (phys_device, phys_reply, D_NOWAIT,
0, vm_page_size);
+
input_pending = 1;
report_carrier_on ();
if (err)