projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clean up stream flow control, give correct name for accept;
[unix-history]
/
usr
/
src
/
sys
/
kern
/
kern_proc.c
diff --git
a/usr/src/sys/kern/kern_proc.c
b/usr/src/sys/kern/kern_proc.c
index
9299660
..
1681501
100644
(file)
--- a/
usr/src/sys/kern/kern_proc.c
+++ b/
usr/src/sys/kern/kern_proc.c
@@
-1,4
+1,10
@@
-/* kern_proc.c 6.5 84/12/20 */
+/*
+ * Copyright (c) 1982 Regents of the University of California.
+ * All rights reserved. The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ *
+ * @(#)kern_proc.c 6.7 (Berkeley) %G%
+ */
#include "../machine/reg.h"
#include "../machine/pte.h"
#include "../machine/reg.h"
#include "../machine/pte.h"
@@
-24,10
+30,9
@@
#include "mbuf.h"
/*
#include "mbuf.h"
/*
- * Change the process group of top and all descendents to npgrp.
- * If npgrp is -1, instead clear any pending stops.
+ * Clear any pending stops for top and all descendents.
*/
*/
-spgrp(top
, npgrp
)
+spgrp(top)
struct proc *top;
{
register struct proc *p;
struct proc *top;
{
register struct proc *p;
@@
-35,11
+40,8
@@
spgrp(top, npgrp)
p = top;
for (;;) {
p = top;
for (;;) {
- if (npgrp == -1)
- p->p_sig &=
+ p->p_sig &=
~(sigmask(SIGTSTP)|sigmask(SIGTTIN)|sigmask(SIGTTOU));
~(sigmask(SIGTSTP)|sigmask(SIGTTIN)|sigmask(SIGTTOU));
- else
- p->p_pgrp = npgrp;
f++;
/*
* If this process has children, descend to them next,
f++;
/*
* If this process has children, descend to them next,
@@
-56,8
+58,6
@@
spgrp(top, npgrp)
p = p->p_pptr;
if (p == top)
return (f);
p = p->p_pptr;
if (p == top)
return (f);
-if (p == &proc[1])
- panic("spgrp");
if (p->p_osptr) {
p = p->p_osptr;
break;
if (p->p_osptr) {
p = p->p_osptr;
break;