Re: [patch 02/14] always create a new process group

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Charlie Brady writes:

> The return value from setsid is not checked, so I don't see the problem 
> here. After the call, the pppd process is the leader of a process group 
> (whether it was before or not), which is what we want.

That's true, but it also means that pppd won't get the SIGINT if the
user types ^C, which is not what we want either.

> > There is a reason why the setsid in detach() is only done
> > after forking.
> 
> To be clear, what is that reason?

The child process won't be a process group leader, therefore the
setsid will succeed.

Paul.
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Audio Users]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux