Annotation of /trunk/ppp/patches/ppp-2.4.4-pppoe-lcp-timeout.patch
Parent Directory | Revision Log
Revision 797 -
(hide annotations)
(download)
Mon May 11 09:46:04 2009 UTC (15 years, 4 months ago) by niro
File size: 505 byte(s)
Mon May 11 09:46:04 2009 UTC (15 years, 4 months ago) by niro
File size: 505 byte(s)
-added patches from gentoo
1 | niro | 797 | diff -Nru ppp-2.4.4.orig/pppd/main.c ppp-2.4.4/pppd/main.c |
2 | --- ppp-2.4.4.orig/pppd/main.c 2008-04-12 10:15:30.000000000 +0300 | ||
3 | +++ ppp-2.4.4/pppd/main.c 2008-04-12 10:23:43.000000000 +0300 | ||
4 | @@ -1569,6 +1569,8 @@ | ||
5 | if (errfd == 0 || errfd == 1) | ||
6 | errfd = dup(errfd); | ||
7 | |||
8 | + closelog(); | ||
9 | + | ||
10 | /* dup the in, out, err fds to 0, 1, 2 */ | ||
11 | if (infd != 0) | ||
12 | dup2(infd, 0); | ||
13 | @@ -1577,7 +1579,6 @@ | ||
14 | if (errfd != 2) | ||
15 | dup2(errfd, 2); | ||
16 | |||
17 | - closelog(); | ||
18 | if (log_to_fd > 2) | ||
19 | close(log_to_fd); | ||
20 | if (the_channel->close) |