[python-win32] Using signal handlers in a Windows Service
Tim Golden
tim.golden at viacom-outdoor.co.uk
Mon Dec 5 18:27:45 CET 2005
[Justin Johnson]
> I'm trying to setup an application that runs as a
> Windows service to rotate logs upon receiving a certain
> signal. Whenever I try to do this I get the following error.
> Exception in TestService.SvcStart: signal only works in main
thread
Is there some reason you have to use Unix-style signals? If you
were to use win32 events (using, say, the win32event module from
pywin32) I suspect it would bypass the problem altogether.
TJG
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
More information about the Python-win32
mailing list