fork, threads and proper closing

Tomasz Pajor nikon at
Sun Jun 28 23:26:21 CEST 2009


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