Investigation shows that two handles are leaked on each fork(): one for synchronization event and one for child's main thread. Event's case is fixed now, but with thread's all is more complicated: simple closing it leads to weird problems.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Investigation shows that two handles are leaked on each fork(): one for synchronization event and one for child's main thread. Event's case is fixed now, but with thread's all is more complicated: simple closing it leads to weird problems.