[issue46022] Multiprocessing.Server.serve_forever runs sys.exit()

2021-12-09 Thread Bar Harel
Change by Bar Harel : -- components: +Library (Lib) type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue46022] Multiprocessing.Server.serve_forever runs sys.exit()

2021-12-09 Thread Bar Harel
Bar Harel added the comment: Regarding backwards compatibility, the only issue that can arise from solutions 1 or 2, is if someone uses a bare `except` statement for finalization around `serve_forever` instead of using `finally`. Keep in mind the function is not documented and there is no go

[issue46022] Multiprocessing.Server.serve_forever runs sys.exit()

2021-12-09 Thread Bar Harel
New submission from Bar Harel : The Python docs recommends using `.serve_forever()` for running a multiprocessing manager. The problem is, that unlike any equivalent `.serve_forever()`, this specific one calls `sys.exit()` and exits the program. This in turn may cause issues if that's not th