added a function for retriving processes that have a certain file open