]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/ppp-2.4.2-close.patch
makegraphs umgebaut, sodass nurnoch rrd daten geschrieben werden die graphen
[people/pmueller/ipfire-2.x.git] / src / patches / ppp-2.4.2-close.patch
CommitLineData
cd1a2927
MT
1diff -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);