ServingSocket question regarding the SystemExit exception

J

Jens Thiede

How do I get SystemExit to be of use, but not noticed in a
StreamRequestHandler spawned by a ThreadingTCPServer?

I tried various ways of getting rid of a StreamRequestHandler thread
namely thread.exit() sys.exit() (which is basicly just raises
SystemExit) and all these were caught (for that reason). So I tried
os._exit(0) and even os.kill(pid, 15) and os.kill(pid, 9) but,
ofcourse they get rid of my program all together.

Help would be valued,

Jens Thiede
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,283
Messages
2,571,407
Members
48,101
Latest member
LinetteDeg

Latest Threads

Top