I am starting a process by doing:
for i in range(1, processes + 1):
hup = MyURLParser() //A class I made
p = Process(target = hup.run)
p.start()
After that, so that the main thread doesn't exit immediately I do:
while (True):
print("Main sleeping...")
sleep(20)
Instead of doing this, how can I check that each of the child processes are still running from the main thread ? Then instead of having the infinite loop I can break out of the loop at the right time and do something else....