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