Re: Re: issue about PIDs ?
> Workaround is to define a handler or ignore the SIGTERM signal in your pppoe-server code.
you mean define a handler in pppd code? what function should call in the handler to bring the pppd down gracefully?
2008-05-22
发件人: James Cameron
发送时间: 2008-05-22 07:11:51
收件人: cyx_mail
抄送: linux-ppp
主题: Re: issue about PIDs ?
On Wed, May 21, 2008 at 09:31:20PM +0800, cyx_mail wrote:
> I modified the pppoe-server code ,and let pppoe-server spawn a pppd.
> then let the server send SIGTEM to pppd(using kill(pppd 2's pid ,
> SIGTEM)) not using the normal way(such as stopsession as the code
> written). the pppoe-server and pppd die both, why?
I guess you mean SIGTERM. This matches my observation with pptpconfig.
Workaround is to define a handler or ignore the SIGTERM signal in your
pppoe-server code.
NetworkManager-pptp also specifically handles SIGTERM and SIGINT,
presumably for the same reason.
--
James Cameron http://quozl.netrek.org/
HP Open Source, Volunteer http://opensource.hp.com/
PPTP Client Project, Release Engineer http://pptpclient.sourceforge.net/
--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
__________ NOD32 3090 (20080509) Information __________
This message was checked by NOD32 antivirus system.
http://www.nod32cn.com
?韬{.n?????%??檩??w?{.n???{炳???骅w*jg????????G??⒏⒎?:+v????????????"??????
[Linux Audio Users]
[Hams]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Photo]
[Yosemite Photos]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Linux Resources]
[Fedora Users]