remove this crap
[openwrt.git] / obsolete-buildroot / sources / openwrt / patches / ppp / close_devfd
1 Ensure that the fd returned by the connect method is closed before
2 running external programs.
3
4 http://article.gmane.org/gmane.linux.ppp/1371
5
6 diff -ruNp ppp.orig/pppd/main.c ppp/pppd/main.c
7 --- ppp.orig/pppd/main.c 2004-07-12 12:55:30.000000000 +0200
8 +++ ppp/pppd/main.c 2004-07-12 12:55:25.000000000 +0200
9 @@ -1662,6 +1662,8 @@ run_program(prog, args, must_exist, done
10 closelog();
11 if (the_channel->close)
12 (*the_channel->close)();
13 + else
14 + close(devfd);
15
16 /* Don't pass handles to the PPP device, even by accident. */
17 dup2(fd_devnull, 0);
This page took 0.040934 seconds and 5 git commands to generate.