[New-bugs-announce] [issue15659] using os.fork() and import user's modules results in errors

Michael report at bugs.python.org
Wed Aug 15 03:30:19 CEST 2012


New submission from Michael:

if I import any python script in the beginning of the code in then I haver next errors:

Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/lib/python2.7/multiprocessing/util.py", line 295, in _exit_function
    p.join()
  File "/usr/lib/python2.7/multiprocessing/process.py", line 143, in join
    assert self._parent_pid == os.getpid(), 'can only join a child process'
AssertionError: can only join a child process
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/lib/python2.7/multiprocessing/util.py", line 295, in _exit_function
    p.join()
  File "/usr/lib/python2.7/multiprocessing/process.py", line 143, in join
    assert self._parent_pid == os.getpid(), 'can only join a child process'
AssertionError: can only join a child process

----------
components: None
files: mydaemon.py
messages: 168251
nosy: michaeluc
priority: normal
severity: normal
status: open
title: using os.fork() and import user's modules results in errors
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file26816/mydaemon.py

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


More information about the New-bugs-announce mailing list