You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement Windows Job Object creation and atomic assignment #320
Create a dedicated unnamed Job Object with JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE, breakaway disabled, and atomic process assignment (preferably PROC_THREAD_ATTRIBUTE_JOB_LIST). Expose a typed ownership observation.
Acceptance:
Native Node-API implementation creates and assigns the Job before process execution.
Reports handle inheritance, kill-on-close, breakaway, and nested-Job constraints.
Closing as implemented: native/windows/src/process.cc (createJob, spawnProcess) creates an unnamed Job Object with JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE, verifies breakaway is disabled via QueryInformationJobObject, atomically assigns the suspended process via PROC_THREAD_ATTRIBUTE_JOB_LIST (UpdateProcThreadAttribute), checks IsProcessInJob before ResumeThread, and returns jobAssigned: true and killOnOwnerClose: true. src/windows/WindowsOwnedProcess.ts validates this with launchSchema and fails closed via WindowsNativeSpawnControlError on malformed or unsupported responses (landed in PR #699 / 26881da76a).
Activity
morluto commentedon Nov 24, 2026
Closing as implemented:
native/windows/src/process.cc(createJob,spawnProcess) creates an unnamed Job Object withJOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE, verifies breakaway is disabled viaQueryInformationJobObject, atomically assigns the suspended process viaPROC_THREAD_ATTRIBUTE_JOB_LIST(UpdateProcThreadAttribute), checksIsProcessInJobbeforeResumeThread, and returnsjobAssigned: trueandkillOnOwnerClose: true.src/windows/WindowsOwnedProcess.tsvalidates this withlaunchSchemaand fails closed viaWindowsNativeSpawnControlErroron malformed or unsupported responses (landed in PR #699 /26881da76a).