clean up SDETACH
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Mon, 25 Jan 1982 14:02:09 +0000 (06:02 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Mon, 25 Jan 1982 14:02:09 +0000 (06:02 -0800)
SCCS-vsn: sys/kern/kern_synch.c 4.16
SCCS-vsn: sys/kern/tty_tty.c 4.8
SCCS-vsn: sys/kern/kern_proc.c 4.19

usr/src/sys/kern/kern_proc.c
usr/src/sys/kern/kern_synch.c
usr/src/sys/kern/tty_tty.c

index 157ae70..790b741 100644 (file)
@@ -1,4 +1,4 @@
-/*     kern_proc.c     4.18    82/01/19        */
+/*     kern_proc.c     4.19    82/01/24        */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -557,8 +557,7 @@ done:
                        }
                        /*
                         * Protect this process from future
                        }
                        /*
                         * Protect this process from future
-                        * tty signals, clear TSTP/TTIN/TTOU if pending,
-                        * and set SDETACH bit on procs.
+                        * tty signals, clear TSTP/TTIN/TTOU if pending.
                         */
                        (void) spgrp(q, -1);
                }
                         */
                        (void) spgrp(q, -1);
                }
index 4e2267b..89afab1 100644 (file)
@@ -1,4 +1,4 @@
-/*     kern_synch.c    4.15    81/11/08        */
+/*     kern_synch.c    4.16    82/01/24        */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -313,7 +313,7 @@ retry:
        rip = u.u_procp;
        rpp->p_stat = SIDL;
        rpp->p_clktim = 0;
        rip = u.u_procp;
        rpp->p_stat = SIDL;
        rpp->p_clktim = 0;
-       rpp->p_flag = SLOAD | (rip->p_flag & (SPAGI|SDETACH|SNUSIG));
+       rpp->p_flag = SLOAD | (rip->p_flag & (SPAGI|SNUSIG));
        if (isvfork) {
                rpp->p_flag |= SVFORK;
                rpp->p_ndx = rip->p_ndx;
        if (isvfork) {
                rpp->p_flag |= SVFORK;
                rpp->p_ndx = rip->p_ndx;
index d61c007..a42c023 100644 (file)
@@ -1,4 +1,4 @@
-/*     tty_tty.c       4.7     82/01/24        */
+/*     tty_tty.c       4.8     82/01/24        */
 
 /*
  * Indirect driver for controlling tty.
 
 /*
  * Indirect driver for controlling tty.
@@ -58,7 +58,6 @@ syioctl(dev, cmd, addr, flag)
                u.u_ttyp = 0;
                u.u_ttyd = 0;
                u.u_procp->p_pgrp = 0;
                u.u_ttyp = 0;
                u.u_ttyd = 0;
                u.u_procp->p_pgrp = 0;
-               u.u_procp->p_flags &= ~SDETACH;
                return;
        }
        if (u.u_ttyp == NULL) {
                return;
        }
        if (u.u_ttyp == NULL) {