summaryrefslogtreecommitdiff
path: root/term/devio.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1996-08-29 21:44:27 +0000
committerThomas Bushnell <thomas@gnu.org>1996-08-29 21:44:27 +0000
commit0e06db4c6fa5ffd7c5861bc147a2badd5964aaf4 (patch)
tree1aa50ef4016603cf4a600c4cc51b8c8fa9bf82a7 /term/devio.c
parente128668294e30480360c7e50269e4cc73e2b9881 (diff)
*** empty log message ***
Diffstat (limited to 'term/devio.c')
-rw-r--r--term/devio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/term/devio.c b/term/devio.c
index e8f7f0b6..cad276de 100644
--- a/term/devio.c
+++ b/term/devio.c
@@ -468,7 +468,10 @@ device_open_reply (mach_port_t replyport,
sizeof (struct port_info),
&phys_reply_writes_pi);
if (errno)
- return errno;
+ {
+ mutex_unlock (&global_lock);
+ return errno;
+ }
phys_reply_writes = ports_get_right (phys_reply_writes_pi);
mach_port_insert_right (mach_task_self (), phys_reply_writes,
phys_reply_writes, MACH_MSG_TYPE_MAKE_SEND);