Skip to content

Commit 3813a87

Browse files
fix(procmgr): terminate suspended child when ResumeThread fails on Windows
Kill the suspended process and drop the retained job/profile instead of leaving them until daemon exit when resume fails after CreateProcessAsUserW.
1 parent c4c4640 commit 3813a87

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pkg/procmgr/rust/src/process.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ pub struct ManagedProcess {
102102
last_config_gate_met: Option<bool>,
103103
#[cfg(windows)]
104104
job_object: Option<platform::JobObject>,
105+
#[cfg(windows)]
106+
user_profile: Option<platform::UserProfileGuard>,
105107
}
106108

107109
impl ManagedProcess {
@@ -132,6 +134,8 @@ impl ManagedProcess {
132134
last_config_gate_met: None,
133135
#[cfg(windows)]
134136
job_object: None,
137+
#[cfg(windows)]
138+
user_profile: None,
135139
}
136140
}
137141

0 commit comments

Comments
 (0)