summaryrefslogtreecommitdiff
path: root/proc/pgrp.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-03-20 21:27:55 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-03-20 21:27:55 +0000
commit2d6e51f4610248d09bc7ca973849856db19410d7 (patch)
treea69d6eccace61c43dc8266864bdf4ecd69618b2a /proc/pgrp.c
parent5186ed22ef34cfdd30a67d06a42db6c89ca7a916 (diff)
(S_proc_setpgrp): Delete bletcherous hack from July 22, 1995.
Diffstat (limited to 'proc/pgrp.c')
-rw-r--r--proc/pgrp.c22
1 files changed, 6 insertions, 16 deletions
diff --git a/proc/pgrp.c b/proc/pgrp.c
index 5af36aeb..219274af 100644
--- a/proc/pgrp.c
+++ b/proc/pgrp.c
@@ -1,5 +1,5 @@
/* Session and process group manipulation
- Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
+ Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
This file is part of the GNU Hurd.
@@ -297,21 +297,11 @@ S_proc_setpgrp (struct proc *callerp,
pgid = p->p_pid;
pg = pgrp_find (pgid);
- /* Temporary hack...XXX */
- if (pg || !zombie_check_pid (pgid))
- /* Look to see if this pgid is in use by a zombie; if so,
- then don't do the permission check below. This is incorrect;
- actually, zombies should be more real than they are now.
- But the effect is right to avoid confusing bash in the case I
- care about right now. */
- {
-
- if (p->p_pgrp->pg_session->s_sid == p->p_pid
- || p->p_pgrp->pg_session != callerp->p_pgrp->pg_session
- || ((pgid != p->p_pid
- && (!pg || pg->pg_session != callerp->p_pgrp->pg_session))))
- return EPERM;
- }
+ if (p->p_pgrp->pg_session->s_sid == p->p_pid
+ || p->p_pgrp->pg_session != callerp->p_pgrp->pg_session
+ || ((pgid != p->p_pid
+ && (!pg || pg->pg_session != callerp->p_pgrp->pg_session))))
+ return EPERM;
if (p->p_pgrp != pg)
{