From a117f7d70abb00109befacfc6d03ac526463d69a Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 20 Jun 1996 20:45:53 +0000 Subject: (devio_abandon_physical_output): Don't do anything if carrier is off. --- term/devio.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'term/devio.c') 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); -- cgit v1.2.3