diff options
author | Gregory Terzian <gterzian@users.noreply.github.com> | 2020-03-26 00:34:48 +0800 |
---|---|---|
committer | Gregory Terzian <gterzian@users.noreply.github.com> | 2020-03-31 00:49:28 +0800 |
commit | 53497fe87f21eb363f04048ef19f755bb39c940a (patch) | |
tree | 22b42ed948dcc8d2f7022d7c9e71fde2f0933366 /components/script/script_thread.rs | |
parent | 67b433648c79a8b397213605311011e22d707cec (diff) | |
download | servo-53497fe87f21eb363f04048ef19f755bb39c940a.tar.gz servo-53497fe87f21eb363f04048ef19f755bb39c940a.zip |
shutting down IPC router thread when a process shuts down.
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index dd0f798fcec..94aac4841da 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -145,6 +145,7 @@ use script_traits::{ScriptToConstellationChan, TimerSchedulerMsg}; use script_traits::{TouchEventType, TouchId, UntrustedNodeAddress, WheelDelta}; use script_traits::{UpdatePipelineIdReason, WebrenderIpcSender, WindowSizeData, WindowSizeType}; use servo_atoms::Atom; +use servo_config::opts; use servo_url::{ImmutableOrigin, MutableOrigin, ServoUrl}; use std::borrow::Cow; use std::cell::Cell; @@ -2908,6 +2909,12 @@ impl ScriptThread { .as_ref() .map(|bhm| bhm.unregister()); + // If we're in multiprocess mode, shut-down the IPC router for this process. + if opts::multiprocess() { + debug!("Exiting IPC router thread in script thread."); + ROUTER.shutdown(); + } + debug!("Exited script thread."); } |