Skip to content

Commit ba45ea0

Browse files
committed
fix(vmm): avoid signaling a reused process group
1 parent de909c2 commit ba45ea0

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

dstack/vmm/src/vm_launcher.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,6 @@ async fn stop_child(child: &mut Child, name: &str, grace: Duration) {
103103
}
104104
}
105105
}
106-
// The group normally disappears with its foreground process. Kill any
107-
// helper descendants that outlived the group leader before launcher exits.
108-
if unsafe { libc::kill(-(pid as libc::pid_t), libc::SIGKILL) } != 0 {
109-
let error = std::io::Error::last_os_error();
110-
if error.raw_os_error() != Some(libc::ESRCH) {
111-
warn!(%pid, %name, %error, "failed to clean up child process group");
112-
}
113-
}
114106
}
115107

116108
async fn wait_for_swtpm(swtpm: &mut Child, socket: &Path, deadline: Instant) -> Result<()> {

0 commit comments

Comments
 (0)