A file descriptor is kept open for every file that is opened, so we are bound to hit a limit when trying to open a lot of files.