summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-11-09 18:02:21 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-11-09 18:02:21 +0000
commita64d82a4d3bffead25a9444b0f75ca5d10f68073 (patch)
tree959c63e53c3092097bb53595418afa3e9e54d246
parent4f535b88412edf2b61aa2130a6ecd2e6744e6bea (diff)
(S_proc_getmsgport): Also return EBUSY if P->waiting, because both
share the same memory in the proc structure.
-rw-r--r--proc/msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proc/msg.c b/proc/msg.c
index 5091205f..ea5490a4 100644
--- a/proc/msg.c
+++ b/proc/msg.c
@@ -1,5 +1,5 @@
/* Message port manipulations
- Copyright (C) 1994 Free Software Foundation
+ Copyright (C) 1994, 1995 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -107,7 +107,7 @@ S_proc_getmsgport (struct proc *callerp,
if (p->p_deadmsg)
{
struct getmsgport_c *c = &callerp->p_continuation.getmsgport_c;
- if (callerp->p_msgportwait)
+ if (callerp->p_msgportwait || callerp->p_waiting)
return EBUSY;
c->reply_port = reply_port;
c->reply_port_type = reply_port_type;