diff options
author | brian <brian@FreeBSD.org> | 2000-03-22 03:01:48 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-03-22 03:01:48 +0000 |
commit | b47896e80062927cee8f935e430194387da38913 (patch) | |
tree | d058705c8aea7169c1c8144e2ae90708b6afd8c3 /usr.sbin | |
parent | 08e4f0700238abdec48bc342149c006d102636e5 (diff) | |
download | FreeBSD-src-b47896e80062927cee8f935e430194387da38913.zip FreeBSD-src-b47896e80062927cee8f935e430194387da38913.tar.gz |
Call bundle_CleanDatalinks() after UpdateSet() in case we're
dropping out of background/foreground/direct mode.
This avoids either having to wait for the redial timer before
exiting or jaming up in select() waiting for something that'll
never happen.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ppp/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index 6bcfdce..2374991 100644 --- a/usr.sbin/ppp/main.c +++ b/usr.sbin/ppp/main.c @@ -519,6 +519,7 @@ DoLoop(struct bundle *bundle) /* All our prompts and the diagnostic socket */ descriptor_UpdateSet(&server.desc, &rfds, NULL, NULL, &nfds); + bundle_CleanDatalinks(bundle); if (bundle_IsDead(bundle)) /* Don't select - we'll be here forever */ break; |