summaryrefslogtreecommitdiff
path: root/proc/wait.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-11-09 18:01:25 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-11-09 18:01:25 +0000
commit4f535b88412edf2b61aa2130a6ecd2e6744e6bea (patch)
tree1f853bd44d084dc2e3d21b3decaa074af5328685 /proc/wait.c
parent0c29fca4560c05d973da90ddb746800ac5a312b9 (diff)
(S_proc_wait): Also return EBUSY if P->msgportwait, because both share
the same memory in the proc structure.
Diffstat (limited to 'proc/wait.c')
-rw-r--r--proc/wait.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc/wait.c b/proc/wait.c
index 267fc618..deac4e3e 100644
--- a/proc/wait.c
+++ b/proc/wait.c
@@ -222,7 +222,7 @@ S_proc_wait (struct proc *p,
if (options & WNOHANG)
return EWOULDBLOCK;
- if (p->p_waiting)
+ if (p->p_waiting || p->msgportwait)
return EBUSY;
p->p_waiting = 1;