Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PG doesn't initialize with staggered start #23

Open
AstraLuma opened this issue Dec 6, 2017 · 2 comments
Open

PG doesn't initialize with staggered start #23

AstraLuma opened this issue Dec 6, 2017 · 2 comments
Labels

Comments

@AstraLuma
Copy link
Member

If you start the individual processes in a process group, the process group is not initialized correctly, causing the processes to not properly join the group nor the group created.

with ProcessGroup() as pg:
  pipe = Pipe()
  spam = Process(['spam'], stdout=pipe.side_in)
  pg.add(spam)
  eggs = Process(['eggs'], stdin=pipe.side_out)
  pg.add(spam)
spam.start()
eggs.start()
eggs.join()
pg.kill()
pg.join()
@AstraLuma AstraLuma added the bug label Dec 6, 2017
@AstraLuma AstraLuma changed the title Add PG start protections PG doesn't initialize with staggered start Dec 6, 2017
@AstraLuma
Copy link
Member Author

Also, I'm pretty sure POSIX can't add a process after it's started.

@AstraLuma
Copy link
Member Author

Windows also fails this test, although through a different mechanism.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant