On Thursday, June 2, 2016 at 8:57:13 PM UTC+12, Steven D'Aprano wrote:
> os.waitpid(pids[i], 0)
One of the first lessons you learn, when messing about with spawning processes
on Linux(-compatible) systems in languages other than a shell, is
ALWAYS GOBBLE YOUR ZOMBIE CHILDREN!
--
https:/
Just for fun, I thought I'd create some zombie processes using Linux.
(This will probably only work on POSIX-compliant operating systems. I don't
know that Windows has zombies.)
I started with the C code given here:
https://en.wikipedia.org/wiki/Zombie_process#Examples
and re-wrote it into Pyt