Skip to content

Commit 7c08883

Browse files
authored
feat!: browser stdout stream is ignored, not inherited (#289)
1 parent 6400887 commit 7c08883

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Changed
1111

1212
- Use a struct `Arg` for arguments to combine flags automatically
13+
- Browser process no longer inherits stdout
1314

1415
### Added
1516

src/async_process.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ impl Command {
5454
self
5555
}
5656

57+
pub fn stdout<T: Into<Stdio>>(&mut self, cfg: T) -> &mut Self {
58+
self.inner.stdout(cfg);
59+
self
60+
}
61+
5762
pub fn stderr<T: Into<Stdio>>(&mut self, cfg: T) -> &mut Self {
5863
self.inner.stderr(cfg);
5964
self

src/browser/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ impl BrowserConfig {
448448
if let Some(ref envs) = self.process_envs {
449449
cmd.envs(envs);
450450
}
451-
cmd.stderr(Stdio::piped()).spawn()
451+
cmd.stdout(Stdio::null()).stderr(Stdio::piped()).spawn()
452452
}
453453
}
454454

0 commit comments

Comments
 (0)