[Twisted-Python] signal handlers and threads
12 May
2006
12 May
'06
6:56 p.m.
Hi. I have written a small module for sending signals to a "foreign" Python process on Windows 2000/XP. The trunk is on http://svn.berlios.de/svnroot/repos/pykill32/trunk In this way I can send KILL, TERM and so, like in a POSIX system. This works by creating a thread on the remote process (yes, Windows allow this...) and let it call the function "raise" from the MSVCR71 DLL. This seems to work fine, and now I can stop a Twisted process with kill.py TERM pid (does twistd save the pid in a file on Windows?) but I'm not sure if signal handlers are thread safe. Regards Manlio Perillo
6530
Age (days ago)
6531
Last active (days ago)
3 comments
2 participants
participants (2)
-
Manlio Perillo
-
Scott Lamb