aboutsummaryrefslogtreecommitdiff
path: root/term/devio.c
diff options
context:
space:
mode:
Diffstat (limited to 'term/devio.c')
-rw-r--r--term/devio.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/term/devio.c b/term/devio.c
index ed9df066..ce12b085 100644
--- a/term/devio.c
+++ b/term/devio.c
@@ -506,6 +506,13 @@ device_open_reply (mach_port_t replyport,
if (returncode != 0)
{
+ /* Note that DEVICE is total garbage (not a real port name at all!)
+ in this case. */
+
+ if (returncode == D_NO_SUCH_DEVICE)
+ /* Record that the device does not exist. */
+ termflags |= NO_DEVICE;
+
/* Bogus. */
report_carrier_on ();
report_carrier_off ();