Skip to content

Use CREATE_BREAKAWAY_FROM_JOB for StartDetached on Windows#217

Closed
Copilot wants to merge 2 commits intomainfrom
copilot/use-create-breakaway-from-job
Closed

Use CREATE_BREAKAWAY_FROM_JOB for StartDetached on Windows#217
Copilot wants to merge 2 commits intomainfrom
copilot/use-create-breakaway-from-job

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 12, 2026

Windows automatically associates child processes with the parent's job object. Without CREATE_BREAKAWAY_FROM_JOB, detached processes inherit job constraints and lifecycle, defeating the purpose of detaching.

Changes

  • Added CREATE_BREAKAWAY_FROM_JOB (0x01000000) flag constant
  • Applied flag to detached process creation alongside DETACHED_PROCESS and CREATE_NEW_PROCESS_GROUP

This ensures StartDetached processes truly run independently from parent job objects.

Original prompt

This section details on the original issue you should resolve

<issue_title>Use CREATE_BREAKAWAY_FROM_JOB on Windows for StartDetached</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: adamsitnik <6011991+adamsitnik@users.noreply.github.com>
Copilot AI changed the title [WIP] Use CREATE_BREAKAWAY_FROM_JOB for StartDetached on Windows Use CREATE_BREAKAWAY_FROM_JOB for StartDetached on Windows Feb 12, 2026
Copilot AI requested a review from adamsitnik February 12, 2026 10:19
@adamsitnik adamsitnik closed this Feb 12, 2026
@adamsitnik adamsitnik reopened this Feb 12, 2026
@adamsitnik
Copy link
Copy Markdown
Owner

Constrained environments (containers, CI) don't allow for that.

@adamsitnik adamsitnik closed this Feb 12, 2026
@adamsitnik adamsitnik deleted the copilot/use-create-breakaway-from-job branch February 13, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use CREATE_BREAKAWAY_FROM_JOB on Windows for StartDetached

2 participants