summaryrefslogtreecommitdiff
path: root/term/devio.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-06-20 20:45:53 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-06-20 20:45:53 +0000
commita117f7d70abb00109befacfc6d03ac526463d69a (patch)
treee41a0e0544209cec01822fc3880104e63e965ab7 /term/devio.c
parentfc64bd8d77ce25b9639754916762ac3d8eddc5c6 (diff)
(devio_abandon_physical_output): Don't do anything if carrier is off.
Diffstat (limited to 'term/devio.c')
-rw-r--r--term/devio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/term/devio.c b/term/devio.c
index 671d63d1..e8f7f0b6 100644
--- a/term/devio.c
+++ b/term/devio.c
@@ -339,6 +339,11 @@ static void
devio_abandon_physical_output ()
{
int val = D_WRITE;
+
+ /* If this variable is clear, then carrier is gone, so we
+ have nothing to do. */
+ if (!phys_reply_writes_pi)
+ return;
mach_port_deallocate (mach_task_self (), phys_reply_writes);
ports_reallocate_port (phys_reply_writes_pi);