Too many files open…

Too many files open...I’m not exactly sure what my computer was up to while I was at work today. But when I arrived home today I couldn’t get the screensaver to bring up the login screen, but the machine was responding to pings…

So I CTRL+ALT+F1 to get a console and try login, and I get the error on the right…

“Cannot execute /bin/bash: Too many files open.” which basically means I couldn’t login at all… so I rebooted and everything seems to be ok now.. weird.