[Live-devel] setup datagram socket fail

Warren Young warren at etr-usa.com
Thu Dec 20 07:23:30 PST 2012


On 12/19/2012 02:04, kingaceck wrote:
> ......
> I find that after "sock = socket(AF_INET, type|SOCK_CLOEXEC, 0); " the
> sock value is -1 and the errno is 24.

errno 24 is EMFILE, on a Linux box, which means there are too many files 
open by the current user.  Since you say you're running it 16 times and 
the FD limit on Linux defaults to 1024, it means you're probably not 
closing some files, at least indirectly.  If you run your program 
through valgrind, you'll probably find that you aren't cleaning up all 
Live555 objects you're using.


More information about the live-devel mailing list