io-event icon indicating copy to clipboard operation
io-event copied to clipboard

Handle fork safely.

Open ioquatix opened this issue 3 years ago • 2 comments

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.

ioquatix avatar Jun 12 '22 11:06 ioquatix

This couldn't utilize Process._fork?

jpcamara avatar Jul 24 '24 21:07 jpcamara

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

ioquatix avatar Jul 25 '24 01:07 ioquatix