News for hackers. Stuff that matters.
Re:Too Many Open Files by Borg3 on Friday June 06, 2025 @05:34PM (#44205202)
Well, if you want more, you can just set it via: #define FD_SETSIZE <value>

Just keep value sane ;) 4096 or 5120 should be okish.

Re:Too Many Open Files by josephcsible on Friday June 06, 2025 @06:00PM (#44205442)
FD_SETSIZE isn't something you can just redefine like that. You'd have to reimplement all the types, macros, etc. yourself.
Re:Too Many Open Files by quotemstr on Friday June 06, 2025 @07:16PM (#44206012)
Yes, it is in fact something you can just redefine yourself. That's not to say you should do it.
Re:Too Many Open Files by josephcsible on Friday June 06, 2025 @08:33PM (#44206423)
Right. You can but generally shouldn't. Like I said upthread, you're better off using poll or epoll.