Skip to content

Add JOB_OBJECT_LIMIT_BREAKAWAY_OK to CreateKillOnParentExitJob for Windows KillOnParentExit support #129709

Description

@danegsta

The killer job created for Windows when KillOnParentExit is true doesn't include the JOB_OBJECT_LIMIT_BREAKAWAY_OK flag, which means there's no way for a child process to be created outside the job. There are scenarios where an application may need to be able to create a process outside the job to support scenarios like resource cleanup. Please consider updating the CreateKillOnParentExitJob method to set JOB_OBJECT_LIMIT_BREAKAWAY_OK on the created job object to allow child processes to be selectively created outside of the job when necessary.

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions