Reply To: Sudden death on pppoe: tcflush failed: Bad file descriptor

Home Page Forums Network Management ZeroShell Sudden death on pppoe: tcflush failed: Bad file descriptor Reply To: Sudden death on pppoe: tcflush failed: Bad file descriptor

#50452

Pit
Member

Some people in the cloud say, that there is an issue with syslog in ppp-2.4.3 and ppp-2.4.4. Downgrading to ppp-2.4.2 should solve the problem.
Other people have a patch for ppp-2.4.4:

https://bugzilla.redhat.com/show_bug.cgi?id=222295

From
http://forum.nag.ru/forum/index.php?s=&showtopic=39627&view=findpost&p=285712

small patch:

— ppp-2.4.4/pppd/main.c.orig 2006-06-04 07:52:50.000000000 +0400
+++ ppp-2.4.4/pppd/main.c 2007-11-09 14:47:20.000000000 +0300
@@ -1567,6 +1567,8 @@
if (errfd == 0 || errfd == 1)
errfd = dup(errfd);

+ closelog();
+
/* dup the in, out, err fds to 0, 1, 2 */
if (infd != 0)
dup2(infd, 0);
@@ -1575,7 +1577,6 @@
if (errfd != 2)
dup2(errfd, 2);

– closelog();
if (log_to_fd > 2)
close(log_to_fd);
if (the_channel->close)

To test if the syslog issue is the problem i need to disable syslog on ZS.

Is there a way to do so?
I tried to kill the prozesses but some magic starts syslogd/klogd again.