[python-uk] how to kill the server in program

2006-02-15 Thread Yang, W (Wanjuan)
Hello, I am building a server program. I have seen some examples like the following: import pickle import Queue import socket import threading # We'll pickle a list of numbers, yet again: someList = [ 1, 2, 7, 9, 0 ] pickledList = pickle.dum

Re: [python-uk] how to kill the server in program

2006-02-15 Thread Chris Miles
On 15 Feb 2006, at 09:42, Yang, W (Wanjuan) wrote: > > Since the server main thread and child thread will run forever, my > question is how can I exit the server nicely in the program when it > is required (e.g no clients coming for a while) rather than using > 'Ctrl-c' or kill the process.