Skip to content

semantics/documentation of Lwt_unix.fork #812

Open
@gares

Description

@gares

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions