We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ca020f commit 271fbd2Copy full SHA for 271fbd2
1 file changed
crates/vite_global_cli/src/commands/shell.rs
@@ -116,6 +116,14 @@ fn get_process_info(pid: u32) -> Option<ProcessInfo> {
116
.output()
117
.ok()?;
118
119
+ if !output.status.success() {
120
+ tracing::debug!(
121
+ "ps failed while reading process info for pid {pid}: {}",
122
+ String::from_utf8_lossy(&output.stderr)
123
+ );
124
+ return None;
125
+ }
126
+
127
let stdout = String::from_utf8_lossy(&output.stdout);
128
let mut lines = stdout.lines();
129
0 commit comments