Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 80039 Details for
Bug 122795
ppp0 without an IP address after loss of connection in persistent mode
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch that forces pppd to wait for its childs before trying to reconnect
ppp-2.4.3-child-wait.patch (text/plain), 1.11 KB, created by
Alin Năstac (RETIRED)
on 2006-02-17 12:53:29 UTC
(
hide
)
Description:
Patch that forces pppd to wait for its childs before trying to reconnect
Filename:
MIME Type:
Creator:
Alin Năstac (RETIRED)
Created:
2006-02-17 12:53:29 UTC
Size:
1.11 KB
patch
obsolete
>diff -Nur ppp-2.4.3.orig/pppd/main.c ppp-2.4.3/pppd/main.c >--- ppp-2.4.3.orig/pppd/main.c 2006-02-17 18:30:49.000000000 +0200 >+++ ppp-2.4.3/pppd/main.c 2006-02-17 22:45:54.629840750 +0200 >@@ -587,6 +587,27 @@ > if (kill_link) > new_phase(PHASE_DORMANT); /* allow signal to end holdoff */ > } while (phase == PHASE_HOLDOFF); >+ >+ /* Wait for scripts to finish */ >+ reap_kids(); >+ if (n_children > 0) { >+ childwait_done = 0; >+ if (child_wait > 0) { >+ TIMEOUT(childwait_end, NULL, child_wait); >+ } >+ if (debug) { >+ struct subprocess *chp; >+ dbglog("Waiting for %d child processes...", n_children); >+ for (chp = children; chp != NULL; chp = chp->next) >+ dbglog(" script %s, pid %d", chp->prog, chp->pid); >+ } >+ while (n_children > 0 && !childwait_done) { >+ handle_events(); >+ if (kill_link && !childwait_done) >+ childwait_end(NULL); >+ } >+ } >+ > if (!persist) > break; > } >@@ -595,6 +616,7 @@ > /* Wait for scripts to finish */ > reap_kids(); > if (n_children > 0) { >+ childwait_done = 0; > if (child_wait > 0) > TIMEOUT(childwait_end, NULL, child_wait); > if (debug) {
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 122795
:
79759
|
80019
| 80039 |
86250