mirror of
https://github.com/servo/servo.git
synced 2025-08-12 17:05:33 +01:00
Some debugging improvements and code style nits across gfx and constellation.
* Propagate the RUST_LOG env var to the child process * Add debug information when a recv() fails in paint thread's select!.
This commit is contained in:
parent
702445a3ec
commit
354dc66029
4 changed files with 17 additions and 6 deletions
|
@ -501,6 +501,10 @@ impl UnprivilegedPipelineContent {
|
|||
command.env("RUST_BACKTRACE", value);
|
||||
}
|
||||
|
||||
if let Ok(value) = env::var("RUST_LOG") {
|
||||
command.env("RUST_LOG", value);
|
||||
}
|
||||
|
||||
let profile = content_process_sandbox_profile();
|
||||
ChildProcess::Sandboxed(Sandbox::new(profile).start(&mut command)
|
||||
.expect("Failed to start sandboxed child process!"))
|
||||
|
@ -515,6 +519,10 @@ impl UnprivilegedPipelineContent {
|
|||
child_process.env("RUST_BACKTRACE", value);
|
||||
}
|
||||
|
||||
if let Ok(value) = env::var("RUST_LOG") {
|
||||
child_process.env("RUST_LOG", value);
|
||||
}
|
||||
|
||||
ChildProcess::Unsandboxed(child_process.spawn()
|
||||
.expect("Failed to start unsandboxed child process!"))
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue