mbridak / not1mm

Not1MM != N1MM, An amateur radio contest logger for Linux.
GNU General Public License v3.0
93 stars 20 forks source link

Fix crash opening windows on systems with zombie processes #39

Closed bseidenberg closed 10 months ago

bseidenberg commented 10 months ago

When opening new windows (band map, log, etc), we currently iterate over all running processes on the system to ensure that window is not currently open. However, if there are any zombie processes (unrelated to us), proc.cmdline() will throw an exception.

This commit simply catches and continues when that exception is thrown. It will also catch NoSuchProcess in the event that a process closed between grabbing the list and that process in the iteration.