Stopping python using ctrl+c

前端 未结 11 1440
-上瘾入骨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

    This post is old but I recently ran into the same problem of Ctrl+C not terminating Python scripts on Linux. I used Ctrl+\ (SIGQUIT).

提交回复
热议问题