[issue8028] self.terminate() from a multiprocessing.Process raises AttributeError exception

Ask Solem report at bugs.python.org
Tue Nov 2 16:16:14 CET 2010


Ask Solem <askh at opera.com> added the comment:

It seems that Process.terminate is not meant to be used by the child, but only the parent.

>From the documentation:

  "Note that the start(), join(), is_alive() and exit_code methods
  should only be called by the process that created the process object."

Either terminate() should be added to this list,
or terminate should be patch to call sys.exit in a child process.

I vote for the former, so I attached a doc patch.

----------
keywords: +patch
Added file: http://bugs.python.org/file19466/i8028.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8028>
_______________________________________


More information about the Python-bugs-list mailing list