From a64d82a4d3bffead25a9444b0f75ca5d10f68073 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 9 Nov 1995 18:02:21 +0000 Subject: (S_proc_getmsgport): Also return EBUSY if P->waiting, because both share the same memory in the proc structure. --- proc/msg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proc') 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; -- cgit v1.2.3