5houston <cadab...@gmail.com> added the comment: If you will choose the former way, I think it would be better to write in the "multiprocessing.Process" documentation that sys.exit is the function to use to break the process execution inside itself, but maybe it would be better to wrap sys.exit with a new "multiprocessing.Process" method: multiprocessing.Process.exit([arg]) for example. Maybe it would be better to modify the sys.exit documentation too. >From "Exit from Python" to "Exit from python process which it is called in". Or, finally, you could modify "multiprocessing.Process.terminate" in this way (using pseudo-code):
self.terminate(): if caller is self: sys.exit() else: -the current code- ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8028> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com