Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 31919 Details for
Bug 51889
"/etc/init.d/rp-pppoe stop" causes pppd to go into an inifinite loop
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fixes the problem by ignoring new signals in the SIGTERM and SIGHUP signal handlers
pppd-no-infinite-loop-on-terminate.patch (text/plain), 888 bytes, created by
Patrick McLean
on 2004-05-23 19:44:13 UTC
(
hide
)
Description:
fixes the problem by ignoring new signals in the SIGTERM and SIGHUP signal handlers
Filename:
MIME Type:
Creator:
Patrick McLean
Created:
2004-05-23 19:44:13 UTC
Size:
888 bytes
patch
obsolete
>diff -urN ppp-2.4.2-orig/pppd/main.c ppp-2.4.2/pppd/main.c >--- ppp-2.4.2-orig/pppd/main.c 2004-05-23 22:23:28.466734096 -0400 >+++ ppp-2.4.2/pppd/main.c 2004-05-23 22:29:49.269843224 -0400 >@@ -1361,9 +1361,11 @@ > { > info("Hangup (SIGHUP)"); > got_sighup = 1; >+ signal(SIGHUP, SIG_IGN); > if (conn_running) > /* Send the signal to the [dis]connector process(es) also */ > kill_my_pg(sig); >+ signal(SIGHUP, hup); > notify(sigreceived, sig); > if (waiting) > siglongjmp(sigjmp, 1); >@@ -1382,9 +1384,13 @@ > { > info("Terminating on signal %d.", sig); > got_sigterm = 1; >+ signal(SIGTERM, SIG_IGN); >+ signal(SIGINT, SIG_IGN); > if (conn_running) > /* Send the signal to the [dis]connector process(es) also */ > kill_my_pg(sig); >+ signal(SIGTERM, term); >+ signal(SIGINT, term); > notify(sigreceived, sig); > if (waiting) > siglongjmp(sigjmp, 1);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 51889
:
31919
|
32020
|
36001