The following patch fixes a thinko in close_file_descriptors() -
currently it keeps trying to close fd 8191 here (RLIMIT_NOFILE is 8192)
and it just keeps failing with EBADF. Without the patch, todays
gtk-gnutella just hangs on start trying repeatedly close(8192).
Index: src/lib/misc.c
===================================================================
--- src/lib/misc.c (revision 12427)
+++ src/lib/misc.c (working copy)
@@ -3767,9 +3767,8 @@
#ifdef F_MAXFD
fd = fcntl(0, F_MAXFD);
#endif
- } else {
- fd--;
}
+ fd--;
}
}
}
--
Meelis Roos ([EMAIL PROTECTED])
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Gtk-gnutella-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel