For my own future reference, here's a good story on the much underused lsof and a nice cheatsheet for its various incantations (before I only really did an 'lsof -n | grep processname' or a 'lsof -p pid').