Subject: Re: stopping childs (patch included)
To: Emmanuel Dreyfus <manu@netbsd.org>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 11/05/2002 15:32:16
On Tue, 5 Nov 2002, Emmanuel Dreyfus wrote:

> > i dunno about emmanuel, but for me the fact that the child runs
> > for an indeterminate amount of time is not enough.  it may run
> > to completion even, before the parent gets scheduled again...
> > this feature i would like.
>
> I reworked a bit the patch, by splitting the stop on fork and stop on
> exec. We now have two short int values that can be changed by sysctl,
> one for stopping on fork and one for stopping on exec.
>
> The values are short instead of int to save memory in struct proc. Since
> this is a debug feature, no one will load it with big values. I even
> wonder is just sticking to a char instead of a short would not be better
> (that would leave 2 bytes of padding that could be used for something
> else)

Isn't there a flag field somewhere? These flags don't really need more
than one bit each.

Take care,

Bill