ramips: fix package name of kmod-input-gpio-buttons
[openwrt.git] / package / ppp / patches / 101-debian_close_dev_ppp.patch
1 --- a/pppd/sys-linux.c
2 +++ b/pppd/sys-linux.c
3 @@ -453,6 +453,13 @@ int generic_establish_ppp (int fd)
4 if (new_style_driver) {
5 int flags;
6
7 + /* if a ppp_fd is already open, close it first */
8 + if(ppp_fd > 0) {
9 + close(ppp_fd);
10 + remove_fd(ppp_fd);
11 + ppp_fd = -1;
12 + }
13 +
14 /* Open an instance of /dev/ppp and connect the channel to it */
15 if (ioctl(fd, PPPIOCGCHAN, &chindex) == -1) {
16 error("Couldn't get channel number: %m");
This page took 0.039935 seconds and 5 git commands to generate.