minidlna: file descriptor 3794 too big for select
Bob Willcox
bob at immure.com
Mon Jun 23 13:22:12 UTC 2014
I just installed minidlna 1.1.3 on my system from ports and ran into the
problem described in Stefan Essers' bug report 185155.
Checking the source and the patch file extra-patch-kqueue I see that Stefan's
suggested workaround has been included. However, the file upnpevents.c didn't
'know' about the increased FD_SETSIZE value so it failed with the following
fatal error:
upnpevents.c:423: fatal: upnpevents_selectfds: file descriptor 3794 too big for select, limit is 1024
So...I added a #define for FD_SETSIZE to the top of that file and things seem
to be working ok now. Here's my simple patch:
--- upnpevents.c.orig 2014-06-05 17:14:30.000000000 -0500
+++ upnpevents.c 2014-06-23 07:47:53.000000000 -0500
@@ -47,6 +47,7 @@
*/
#include "config.h"
+#define FD_SETSIZE 8192
#include <stdio.h>
#include <string.h>
#include <errno.h>
--
Bob Willcox | I really hate this damned machine
bob at immure.com | I wish that they would sell it.
Austin, TX | It never does quite what I want
| But only what I tell it.
More information about the freebsd-ports
mailing list