You are not logged in.
try:
threading.Thread(target=server.serve_forever).start()
except KeyboardInterrupt:
# STOP THREAD AND TERMINATE APPLICATION
How do I do that?
I need a way to stop that thread and exit application completely.
Simplicity is prerequisite for reliability. -- Edsger Dijkstra
Offline
Set the "daemon" attribute to True. The subthreads should then exit when the main thread does.
Again, please take a look through the modules in my threaded servers package that I linked in your other thread. I have likely encountered and solved many of the same problems that you will encounter.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
[DELETED]
Found a way on my own. Thanks Xyne for your help though.
Last edited by Super Root (2013-07-04 16:58:08)
Simplicity is prerequisite for reliability. -- Edsger Dijkstra
Offline