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

Handle fork safely. #36

Open
ioquatix opened this issue Jun 12, 2022 · 2 comments
Open

Handle fork safely. #36

ioquatix opened this issue Jun 12, 2022 · 2 comments

Comments

@ioquatix
Copy link
Member

Forking with an active scheduler is unlikely to work as expected.

It would make sense to detect this (e.g. pthread_atfork) and either (1) invalidate the scheduler or (2) recreate the scheduler.

@jpcamara
Copy link

This couldn't utilize Process._fork?

@ioquatix
Copy link
Member Author

There are ways to detect and recreate the file monitors, libev does something like this.

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

No branches or pull requests

2 participants