Stopping python using ctrl+c

前端 未结 11 1441
-上瘾入骨i
-上瘾入骨i 2020-11-29 19:44

I have a python script that uses threads and makes lots of HTTP requests. I think what\'s happening is that while a HTTP request (using urllib2) is reading, it\'s blocking a

11条回答
  •  忘掉有多难
    2020-11-29 20:23

    On a mac / in Terminal:

    1. Show Inspector (right click within the terminal window or Shell >Show Inspector)
    2. click the Settings icon above "running processes"
    3. choose from the list of options under "Signal Process Group" (Kill, terminate, interrupt, etc).

提交回复
热议问题