I was trying to use the multiproccessing Pool module to do some background
after a web request. Seems to work fine on Linux, but on windows the
basically ends up trying to restart the entire web server, which fails
since the listening port
is occupied, and never ends up calling the requested functions.
The multiprocessing docs emphasize that the "__main__" module be protected
with the usual if __name__ == "__main__", so that it can be loaded without
all initialization code again. This seems to be what is happening in the
case. We load a new sub-process which tries to start the web-server all
I poked around the paster code a bit, but couldn't really find the answer.
Has anybody had any luck using multiprocessing on BOTH unix and windows in