sockets,threads and interupts

Dieter Maurer dieter at handshake.de
Wed Sep 5 01:56:02 EDT 2012


loial <jldunn2000 at gmail.com> writes:

> I have threaded python script that uses sockets to monitor network ports.
>
> I want to ensure that the socket is closed cleanly in all circumstances. This includes if the script is killed or interupted in some other way.

The operating system should close all sockets automatically when
the process dies. Thus, if closing alone is sufficient...




More information about the Python-list mailing list