refactor lsof checking and fix an lsof leak in pypy
refactor lsof checking and fix an lsof leak in pypy

mhils/pytest,abusalimov/pytest,jaraco/pytest,Bachmann1234/pytest,davidszotten/pytest,etataurov/pytest,ericdill/pytest,nicoddemus/pytest,tomviner/pytest,eli-b/pytest,userzimmermann/pytest,takluyver/pytest,chiller/pytest,tareqalayan/pytest,ionelmc/pytest,mhils/pytest,malinoff/pytest,The-Compiler/pytest,pfctdayelise/pytest,skylarjhdownes/pytest,markshao/pytest,The-Compiler/pytest,MengJueM/pytest,ghostsquad/pytest,nicoddemus/repo-test,codewarrior0/pytest,ropez/pytest,mdboom/pytest,wfxiang08/pytest,bubenkoff/pytest,chillbear/pytest,doordash/pytest,userzimmermann/pytest,rouge8/pytest,flub/pytest,vodik/pytest,hpk42/pytest,gabrielcnr/pytest,vmalloc/dessert,hunse/pytest,rmfitzpatrick/pytest,Carreau/pytest,ericdill/pytest,Carreau/pytest,abusalimov/pytest,jb098/pytest,wfxiang08/pytest,oleg-alexandrov/pytest,bukzor/pytest,pelme/pytest,Bachmann1234/pytest,icemac/pytest,pytest-dev/pytest,ionelmc/pytest,ddboline/pytest,inirudebwoy/pytest,lukas-bednar/pytest,omarkohl/pytest,untitaker/pytest,vodik/pytest,JonathonSonesen/pytest,pelme/pytest,doordash/pytest,JonathonSonesen/pytest,MichaelAquilina/pytest,gabrielcnr/pytest,hpk42/pytest,Haibo-Wang-ORG/pytest,icemac/pytest,Bjwebb/pytest,chillbear/pytest,mdboom/pytest,untitaker/pytest,nicoddemus/repo-test,txomon/pytest,tgoodlet/pytest,bubenkoff/pytest,hackebrot/pytest,Akasurde/pytest,jb098/pytest,lukas-bednar/pytest,ghostsquad/pytest,mbirtwell/pytest,ojake/pytest,nicoddemus/pytest,hunse/pytest,Haibo-Wang-ORG/pytest,Bjwebb/pytest,RonnyPfannschmidt/pytest,ojake/pytest,mbirtwell/pytest,MengJueM/pytest,ropez/pytest,omarkohl/pytest,inirudebwoy/pytest,codewarrior0/pytest,tomviner/pytest,bukzor/pytest,takluyver/pytest,chiller/pytest,alfredodeza/pytest,rouge8/pytest,oleg-alexandrov/pytest