Using multiprocessing from a Windows service
James Mills
prologic at shortcircuit.net.au
Fri Feb 6 00:54:16 EST 2009
On Fri, Feb 6, 2009 at 3:21 PM, Volodymyr Orlenko <orlenko at gmail.com> wrote:
> In the patch I submitted, I simply check if the name of the supposed module
> ends with ".exe". It works fine for my case, but maybe this is too general.
> Is there a chance that a Python module would end in ".exe"? If so, maybe we
> should check specifically for "pythonservice.exe". But then, if someone
> renames the executable (as I did, because I wanted to see meaningful service
> names in the process list), the patch will not work. Maybe there's another
> way to fix the forking module?
I believe the best way to fix this is to fix the underlying
issue that Mark has pointed out (monkey-patching mp won't do).
--JamesMills
More information about the Python-list
mailing list