def test_run_proc(): print('Parent process %s.' % os.getpid()) p = Process(target=run_proc, args=('test', )) print('Child process will start.') p.StandardErrorart() p.join() print('Child process end.')