From: Cristiano Giuffrida Date: Tue, 13 Jul 2010 22:40:14 +0000 (+0000) Subject: Remove patch leftovers. X-Git-Tag: v3.1.8~239 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/style.css?a=commitdiff_plain;h=20101b3bab0f33d0b525e9b5977a00a00d0fb94a;p=minix.git Remove patch leftovers. --- diff --git a/kernel/main.c b/kernel/main.c index 4b1938fdc..f0aab345b 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -120,8 +120,6 @@ PUBLIC int main(void) priv(rp)->s_sig_mgr = SRV_SM; /* signal manager */ rp->p_priority = SRV_Q; /* priority queue */ rp->p_quantum_size_ms = SRV_QT; /* quantum size */ - rp->p_priority = SRV_Q; /* priority queue */ - rp->p_quantum_size_ms = SRV_QT; /* quantum size */ } /* Priviliges for ordinary process. */ else { diff --git a/kernel/system/do_update.c b/kernel/system/do_update.c index 5a80222a1..1d1bbeff6 100644 --- a/kernel/system/do_update.c +++ b/kernel/system/do_update.c @@ -41,6 +41,7 @@ PUBLIC int do_update(struct proc * caller, message * m_ptr) struct proc orig_dst_proc; struct priv orig_src_priv; struct priv orig_dst_priv; + int i; /* Lookup slots for source and destination process. */ src_e = m_ptr->SYS_UPD_SRC_ENDPT; @@ -78,6 +79,13 @@ PUBLIC int do_update(struct proc * caller, message * m_ptr) printf("do_update: curr ptproc %d\n", ptproc->p_endpoint); #endif + /* Let destination inherit the target mask from source. */ + for (i=0; i < NR_SYS_PROCS; i++) { + if (get_sys_bit(priv(src_rp)->s_ipc_to, i)) { + set_sendto_bit(dst_rp, i); + } + } + /* Save existing data. */ orig_src_proc = *src_rp; orig_src_priv = *(priv(src_rp));