[spambayes-dev] stopping pop3proxy

Mark Hammond mhammond at skippinet.com.au
Tue Aug 26 10:40:18 EDT 2003


[Tony]
> Perhaps if I ran pop3proxy with pythonw instead of python, so 
> that there
> wasn't a console window?  I'll give that a go tonight.  I suppose that
> whatever Windows does to try and shut down console apps must be
> documented somewhere on msdn, so I could go look for it myself...

No, I think the issue will actually be "does the app have a message queue?".
Even if running under pythonw.exe, there is no way for Windows to cleanly
shutdown a Python app other than a "console control event" (I think it is
called).

Running a messagw queue would also allow you to detect logon/loggoff etc
events under Win9x (NT platforms should just use the service)

Back to the original issue - I thought a common way to shutdown a server
like this was simply to make a local connection to the server and issue a
shutdown command.  Or was it just to make a temporary local connection just
to wake up each listener so it can shutdown?  Either way, I have no clue
about how pop3proxy is structured, so have no idea if this even makes sense
:)

Mark.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 2148 bytes
Desc: not available
Url : http://mail.python.org/pipermail/spambayes-dev/attachments/20030826/eab6424c/winmail.bin


More information about the spambayes-dev mailing list