Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Can't shutdown when press CTRL-C #5

Open
feisan opened this issue May 22, 2013 · 1 comment
Open

Can't shutdown when press CTRL-C #5

feisan opened this issue May 22, 2013 · 1 comment

Comments

@feisan
Copy link

feisan commented May 22, 2013


import gevent

def run_forever():
    while True:
        gevent.sleep(1)

def main():
    rf = gevent.spawn(run_forever)
    rf.join()

if __name__ == "__main__":
    main()

when press CTRL-C

From callback <bound method loop._prepare_callback of <pypycore.loop object at 0x0000000104027ec0>>:
Traceback (most recent call last):
File ~/pypycore/pypycore.py", line 368, in _prepare_callback
self._run_callbacks()
KeyboardInterrupt

@kebot
Copy link

kebot commented May 23, 2013

I can not stop the server started by gevent-socket.io with Ctrl-C

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

2 participants