how to kill zombie processes created by multiprocessing module?

前端 未结 3 496
慢半拍i
慢半拍i 2020-12-25 13:11

I\'m very new to multiprocessing module. And I just tried to create the following: I have one process that\'s job is to get message from RabbitMQ and pass it to

3条回答
  •  难免孤独
    2020-12-25 13:52

    A couple of things:

    1. Make sure the parent joins its children, to avoid zombies. See Python Multiprocessing Kill Processes

    2. You can check whether a child is still running with the is_alive() member function. See http://docs.python.org/2/library/multiprocessing.html#multiprocessing.Process

提交回复
热议问题