79102690

Date: 2024-10-18 15:26:44
Score: 1
Natty:
Report link

In order to be able to get ride of zombies, here what does doc say:

On Unix when a process finishes but has not been joined it becomes a zombie. There should never be very many because each time a new process starts (or active_children() is called) all completed processes which have not yet been joined will be joined. Also calling a finished process’s Process.is_alive will join the process. Even so it is probably good practice to explicitly join all the processes that you start.

So in order to avoid zombies, you need to call the process join() method once you kill it.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: khalidgt