Skip to content

Commit

Permalink
Fix stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
xtrime-ru committed May 7, 2024
1 parent ccfdc59 commit 7a438b3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,12 @@ fn pyspy_main() -> Result<(), Error> {
.stdin(std::process::Stdio::null())
.stdout(process_output.reopen()?)
.stderr(process_output.reopen()?)
}
} else {
command = command
.stdin(std::process::Stdio::null())
.stdout(std::process::Stdio::inherit())
.stderr(std::process::Stdio::inherit())
}

let mut command = command
.spawn()
Expand All @@ -640,6 +645,8 @@ fn pyspy_main() -> Result<(), Error> {
}
});

command.wait();

#[cfg(target_os = "macos")]
{
// sleep just in case: https://jvns.ca/blog/2018/01/28/mac-freeze/
Expand Down

0 comments on commit 7a438b3

Please sign in to comment.