[vpnc-devel] Spammed with Bad file descriptor messages (with patch)
Erik de Castro Lopo
mle+tools at mega-nerd.com
Fri Jun 13 03:07:01 CEST 2008
HI all,
On a long running VPNC session I eventually get this in syslog:
Jun 13 00:04:08 localhost vpnc[31231]: select: Bad file descriptor
followed by hundreds of identical messages per second until I kill it.
It lookse like we need something like the following patch which I am
testing right now.
Cheers,
Erik
--- tunip.c (revision 8623)
+++ tunip.c (working copy)
@@ -889,6 +889,10 @@
} while ((presult == 0 || (presult == -1 && errno == EINTR)) && !do_kill);
if (presult == -1) {
syslog(LOG_ERR, "select: %m");
+
+ if (errno == EBADF) {
+ break;
+ }
continue;
}
--
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
"Data is not information, Information is not knowledge, Knowledge is
not understanding, Understanding is not wisdom."
-- Clifford Stoll
More information about the vpnc-devel
mailing list