projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
kernel: update ssb and bcma to linux-next next-20110627
[openwrt.git]
/
package
/
ppp
/
patches
/
102-debian_fix_close_fd0.patch
1
--- a/pppd/main.c
2
+++ b/pppd/main.c
3
@@ -1570,6 +1570,8 @@ safe_fork(int infd, int outfd, int errfd
4
if (errfd == 0 || errfd == 1)
5
errfd = dup(errfd);
6
7
+ closelog();
8
+
9
/* dup the in, out, err fds to 0, 1, 2 */
10
if (infd != 0)
11
dup2(infd, 0);
12
@@ -1578,7 +1580,6 @@ safe_fork(int infd, int outfd, int errfd
13
if (errfd != 2)
14
dup2(errfd, 2);
15
16
- closelog();
17
if (log_to_fd > 2)
18
close(log_to_fd);
19
if (the_channel->close)
This page took
0.040956 seconds
and
5
git commands to generate.