Christoph Lameter <[email protected]> writes:
> On Wed, 8 Feb 2006 [email protected] wrote:
>
>> + if (unlikely(p->pid == 1)) {
>> + p->signal->tty = NULL;
>> + p->signal->leader = 1;
>> + p->signal->pgrp = 1;
>> + p->signal->session = 1;
>
> Would it not be better to do these special settings for init from
> init itself?
So if you mean from within the kernel context that is doable,
so long as we only have one process with pid == 1.
Although we may be able fix the kernel limitations in setsid().
For multiple pid == 1 case I don't know of another place in
the kernel I can possibly put this. I can't put it later
because there is no place later, and I can't put it earlier
or else my efforts would just get stomped.
So I did it this way so I don't have to come back and change it to
this next week. I'd love to have a better place to put this
code.
Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]