Skip to content

Option to force use of posix_spawn #342

@adamgundry

Description

@adamgundry

In a client project, we have a server that for performance reasons must not call fork under any circumstances (it has a very large resident set). Unfortunately since the removal of vfork, this has been hard to arrange (cf. #303), because the conditions under which posix_spawn works are opaque and if any of them fail, the code automatically falls back on fork. In our case it would be preferable for the whole createProcess call to fail.

Could process provide an option to disable the fork-exec path? Specifying this at compile time or even configure time is fine; I'm not sure if there is an easy way to override configure to treat fork as not available?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions