]>
Commit | Line | Data |
---|---|---|
cd1a2927 MT |
1 | diff -ur ppp-2.4.2.old/pppd/main.c ppp-2.4.2/pppd/main.c |
2 | --- ppp-2.4.2.old/pppd/main.c 2004-01-13 04:00:34.000000000 +0000 | |
3 | +++ ppp-2.4.2/pppd/main.c 2004-05-24 19:05:34.000000000 +0100 | |
4 | @@ -1662,8 +1648,11 @@ | |
5 | ||
6 | /* Ensure that nothing of our device environment is inherited. */ | |
7 | closelog(); | |
8 | + /* Some plugins dont have a close function, so just close the devfd */ | |
9 | if (the_channel->close) | |
10 | (*the_channel->close)(); | |
11 | + else | |
12 | + close(devfd); | |
13 | ||
14 | /* Don't pass handles to the PPP device, even by accident. */ | |
15 | dup2(fd_devnull, 0); |