Open
Description
As per fc633f8 fork
is supposed to "cancel" the pending jobs. Unfortunately the doc does not say it does so in a delayed fashion. A comment hints that it is to give change to do an exec
sys call (which would anyway "cancel" all pending jobs).
We were unlucky, the first call after fork in our code was triggering an error in a promise that we though would have been cancelled by fork. It is unclear to me if yielding there would guarantee this cannot happen...
CC @maximedenes