I get Exception: OSError(22, 'Invalid argument') on OSX 10.13.4 with Python 2.7 Adding this to the loop makes it go away: ``` for proc in psutil.process_iter(): if proc.pid == os.getpid(): continue ```
I get Exception: OSError(22, 'Invalid argument') on OSX 10.13.4 with Python 2.7
Adding this to the loop makes it go away: