I am running Python3 on OSX; so far I have been using console apps launched by terminal), and from my understanding, the terminal is spawning process and they are child of the spawner, so when that goes away, all the child process are terminated.
Although, now I am running UI; tried with TKinter and then moved on PyQt5. In this case, I am experiencing some problems where my test process is not closed as it happen in the terminal, but hang as zombie. While I believe that the zombie process is not much of a problem, what concern me is that I do not have control or understanding of "who is running the boat", as far as process ownership.
Is there a way to get a sort of tree, about which process is holding on another process(or multiple ones); so I can handle the order and close the right ones? Also for some reason, even giving a sudo kill -9
on the zombie process does not kill it; so I would really like to know what is happening in the backend and handle things correctly.