multi-disk paging
[unix-history] / usr / src / sys / kern / kern_proc.c
index 81a4de2..22a7a27 100644 (file)
@@ -1,4 +1,4 @@
-/*     kern_proc.c     3.8     %H%     */
+/*     kern_proc.c     3.11    %G%     */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -145,7 +145,8 @@ badarg:
                        if ((nc&BMASK) == 0) {
                                if (bp)
                                        brelse(bp);
                        if ((nc&BMASK) == 0) {
                                if (bp)
                                        brelse(bp);
-                               bp = bread(swapdev, (daddr_t)(dbtofsb(swplo+bno)+(nc>>BSHIFT)));
+                               bp = bread(swapdev,
+                                   (daddr_t)(dbtofsb(swplo+bno)+(nc>>BSHIFT)));
                                bp->b_flags |= B_AGE;           /* throw away */
                                bp->b_flags &= ~B_DELWRI;       /* cancel io */
                                cp = bp->b_un.b_addr;
                                bp->b_flags |= B_AGE;           /* throw away */
                                bp->b_flags &= ~B_DELWRI;       /* cancel io */
                                cp = bp->b_un.b_addr;
@@ -513,7 +514,7 @@ done:
                         * Protect this process from future
                         * tty signals, and clear TSTP/TTIN/TTOU if pending.
                         */
                         * Protect this process from future
                         * tty signals, and clear TSTP/TTIN/TTOU if pending.
                         */
-                       q->p_pgrp = 0;
+                       q->p_pgrp = q->p_pid;
 #define        bit(a)  (1<<(a-1))
                        q->p_sig &= ~(bit(SIGTSTP)|bit(SIGTTIN)|bit(SIGTTOU));
                }
 #define        bit(a)  (1<<(a-1))
                        q->p_sig &= ~(bit(SIGTSTP)|bit(SIGTTIN)|bit(SIGTTOU));
                }