diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-30 08:32:03 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-30 08:32:03 +0300 |
commit | 306828584b63fafdeb30d21b5afe12e2fce7ea48 (patch) | |
tree | 7ce1f745284dcdcdb18c20b0651c088ba4ca8045 | |
parent | 07be95a20d64451cd6b28ac1b79bfff05ab3700f (diff) |
modified: files/ppp_pause_between_reconnect.patch
modified: ppp-2.4.5-r1.ebuild
-rw-r--r-- | net-dialup/ppp/files/ppp_pause_between_reconnect.patch | 6 | ||||
-rw-r--r-- | net-dialup/ppp/ppp-2.4.5-r1.ebuild | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/net-dialup/ppp/files/ppp_pause_between_reconnect.patch b/net-dialup/ppp/files/ppp_pause_between_reconnect.patch index 3507593..4db68fd 100644 --- a/net-dialup/ppp/files/ppp_pause_between_reconnect.patch +++ b/net-dialup/ppp/files/ppp_pause_between_reconnect.patch @@ -34,7 +34,7 @@ diff -Naur ppp-2.4.5/pppd/options.c ppp-2.4.5_patched/pppd/options.c { "persist", o_bool, &persist, "Keep on reopening connection after close", OPT_PRIO | 1 }, -+ { "pause_between_reconnects", o_int, &pause_between_reconnect, ++ { "pause_between_reconnect", o_int, &pause_between_reconnect, + "set pause between reconnects to avoid log flood/high cpu usage", OPT_PRIO }, { "nopersist", o_bool, &persist, "Turn off persist option", OPT_PRIOSUB }, @@ -58,7 +58,7 @@ diff -Naur ppp-2.4.5/pppd/tty.c ppp-2.4.5_patched/pppd/tty.c if (!persist || err != EINTR) goto errret; + else -+ sleep(pause_between_reconnects); ++ sleep(pause_between_reconnect); } ttyfd = real_ttyfd; if ((fdflags = fcntl(ttyfd, F_GETFL)) == -1 @@ -67,7 +67,7 @@ diff -Naur ppp-2.4.5/pppd/tty.c ppp-2.4.5_patched/pppd/tty.c if (!persist || errno != EINTR || hungup || got_sigterm) goto errret; + else -+ sleep(paus_between_reconnect); ++ sleep(pause_between_reconnect); } close(i); } diff --git a/net-dialup/ppp/ppp-2.4.5-r1.ebuild b/net-dialup/ppp/ppp-2.4.5-r1.ebuild index cf6dc83..fe46b42 100644 --- a/net-dialup/ppp/ppp-2.4.5-r1.ebuild +++ b/net-dialup/ppp/ppp-2.4.5-r1.ebuild @@ -39,6 +39,7 @@ src_prepare() { epatch "${WORKDIR}/patch/passwordfd-read-early.patch" epatch "${WORKDIR}/patch/pppd-usepeerwins.patch" epatch "${WORKDIR}/patch/connect-errors.patch" + epatch "${FILESDIR}/ppp-2.4.5-r1.patch" epatch "${FILESDIR}/ppp_pause_between_reconnect.patch" use eap-tls && { |