fork, threads and proper closing

Tomasz Pajor nikon at puffy.pl
Sun Jun 28 17:26:21 EDT 2009


Hello,

Configuration is as follows.

I have a starter process which creates 3 sub processes (forks) and each 
of this processes creates a number of threads.
Threads in that processes have semaphore so on KeyboardInterrupt without 
sending a sigterm to the subprocess i'm not able to close threads.
Is there any work around? Can I somehow run join for the thread on 
keyboard interrupt?

--
Best regards
Tomasz Pajor



More information about the Python-list mailing list