Fix extraneous processes in process list
Some processes hang there because updateOrAddProcess
can be called outside of processesUpdated
, particularly from the network plugin. In that case, they might not get removed from the model if they terminate before the next update. This patch simplifies the logic of processesUpdated
, which makes it more robust against this scenario.
This fixes a bug that some processes annoyingly hang in the process list forever.