I am doing a project. But I found in the source code there are so many file descriptor left unclosed. The first glance of it, I thought this is not good. After I googled, someone says, if there are some buffer behind this fd, don't close it or something bad will happen. I am not sure about this. So some can give some advice?
Should the file descriptor be closed once used? Are there any rules about usage of file descriptor?