[python-win32] Using signal handlers in a Windows Service

Justin Johnson justinjohnson at gmail.com
Mon Dec 5 18:42:12 CET 2005


I was trying to keep things consistent with UNIX, but I suppose there's no
reason I have to do things that way.  Thanks.

On 12/5/05, Tim Golden <tim.golden at viacom-outdoor.co.uk> wrote:
>
> [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
> ________________________________________________________________________
> _______________________________________________
> Python-win32 mailing list
> Python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20051205/1fc057cb/attachment.html


More information about the Python-win32 mailing list