推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
aias
V2EX  ›  Python

如何结束掉进程?

  •  
  •   aias · May 20, 2016 · 3905 views
    This topic created in 3790 days ago, the information mentioned may be changed or developed.

    比如

    p1 = multiprocessing.Process(target = time_out, args = ())
    

    搜了一下似乎没有相应的方法...各位有什么好的方法吗?

    5 replies  •  2016-05-20 21:34:14 +08:00
    b1eberg0n
        1
    b1eberg0n  
       May 20, 2016
    p1.terminate()
    aias
        2
    aias  
    OP
       May 20, 2016
    @b1eberg0n 谢谢你的回复。好像并不行..
    EchoUtopia
        3
    EchoUtopia  
       May 20, 2016
    signal 呢
    ZOwl
        4
    ZOwl  
       May 20, 2016   ❤️ 1
    注册 signal ,收到后 kill 后, p1.terminate(),再 p1.join()更新状态
    SlipStupig
        5
    SlipStupig  
       May 20, 2016
    1. p1.terminate
    2.signal
    3. kill -9 pid
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2675 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 03:17 · PVG 11:17 · LAX 20:17 · JFK 23:17
    ♥ Do have faith in what you're doing.