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.

Activity

  1. dotnet-policy-service commented on Jun 22, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @JulieLeeMSFT, @VSadov
    See info in area-owners.md if you want to be subscribed.

  2. dotnet-policy-service commented on Jun 22, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/area-system-diagnostics-process
    See info in area-owners.md if you want to be subscribed.

  3. removed
    untriagedNew issue has not been triaged by the area owner
    on Jun 23, 2026
  4. added this to the 11.0.0 milestone on Jun 23, 2026
  5. self-assigned this
    on Jun 23, 2026
  6. added a commit that references this issue on Jun 30, 2026
    feffe53
  7. added a commit that references this issue on Jul 15, 2026
    aba9ae3
  8. locked and limited conversation to collaborators on Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions