I'd like to be able to use multiprocessing
in a module I'm developing, but in Windows I need to ensure that the user wraps their entry point in an if __name__ == "__main__"
or else the user will experience a multiprocessing bomb.
Is it possible to detect that multiprocessing bombing may be underway inside a module and terminate? Or even better, avoid a multiprocessing bomb in the first place while still being able to start a multiprocessing.Process
inside my module?