Skip to content
This repository has been archived by the owner on Nov 23, 2017. It is now read-only.

SIGINT is not correctly handled in Windows #407

Open
stefanotorresi opened this issue Aug 30, 2016 · 2 comments
Open

SIGINT is not correctly handled in Windows #407

stefanotorresi opened this issue Aug 30, 2016 · 2 comments

Comments

@stefanotorresi
Copy link

stefanotorresi commented Aug 30, 2016

in Windows, CTRL+C doesn't terminate this script:

#!/usr/bin/env python

import asyncio

try:
    asyncio.get_event_loop().run_forever()
except KeyboardInterrupt:
    asyncio.get_event_loop().stop()

also see #191

@lukkm
Copy link

lukkm commented Apr 18, 2017

Are there any news or known workarounds for this? I'm having the same problem

@gera2ld
Copy link

gera2ld commented Apr 29, 2017

@lukkm Here is a workaround: https://stackoverflow.com/questions/24774980/why-cant-i-catch-sigint-when-asyncio-event-loop-is-running/24775107#24775107

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants