Skip to content

Commit ef07f67

Browse files
committed
refactor(vmm): keep launcher process name unchanged
1 parent ecb6cf2 commit ef07f67

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

dstack/vmm/src/vm_launcher.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,6 @@ impl Drop for SocketCleanup {
5151
}
5252
}
5353

54-
fn set_process_name() {
55-
let name = b"dstack-cvm\0";
56-
// SAFETY: PR_SET_NAME reads a NUL-terminated buffer of at most 16 bytes.
57-
unsafe {
58-
libc::prctl(libc::PR_SET_NAME, name.as_ptr().cast::<libc::c_void>());
59-
}
60-
}
61-
6254
fn spawn_child(spec: &ChildCommand) -> Result<Child> {
6355
let parent = unsafe { libc::getpid() };
6456
let mut command = Command::new(&spec.command);
@@ -139,7 +131,6 @@ async fn wait_for_swtpm(swtpm: &mut Child, socket: &Path, deadline: Instant) ->
139131
}
140132

141133
pub async fn run(spec_path: &Path) -> Result<()> {
142-
set_process_name();
143134
let raw = fs_err::read(spec_path)
144135
.with_context(|| format!("failed to read launch spec {}", spec_path.display()))?;
145136
let spec: LaunchSpec = serde_json::from_slice(&raw).context("failed to parse launch spec")?;

0 commit comments

Comments
 (0)