aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Rajchenbach-Teller <D.O.Teller@gmail.com>2015-08-06 11:51:40 +0200
committerDavid Rajchenbach-Teller <D.O.Teller@gmail.com>2015-08-06 12:10:26 +0200
commitd2a3a6817030b01f9491c4bed7c215cf2c606a62 (patch)
tree8215a61f42a046a44fe64f6f0f419f785cf62f68
parentb9dcd49778b8ff6d2aef0ac2420c3a30b80432c1 (diff)
downloadservo-d2a3a6817030b01f9491c4bed7c215cf2c606a62.tar.gz
servo-d2a3a6817030b01f9491c4bed7c215cf2c606a62.zip
Resolves #5478 - use std::process::exit instead of lib::exit in constellation.rs
-rw-r--r--components/compositing/Cargo.toml1
-rw-r--r--components/compositing/constellation.rs4
-rw-r--r--components/compositing/lib.rs1
-rw-r--r--components/servo/Cargo.lock1
4 files changed, 2 insertions, 5 deletions
diff --git a/components/compositing/Cargo.toml b/components/compositing/Cargo.toml
index e3ec5f2ed24..f00f282d105 100644
--- a/components/compositing/Cargo.toml
+++ b/components/compositing/Cargo.toml
@@ -74,7 +74,6 @@ features = [ "serde_serialization" ]
log = "0.3"
num = "0.1.24"
time = "0.1.17"
-libc = "0.1"
gleam = "0.1"
euclid = "0.1"
diff --git a/components/compositing/constellation.rs b/components/compositing/constellation.rs
index a732fa797d8..28aba6346ea 100644
--- a/components/compositing/constellation.rs
+++ b/components/compositing/constellation.rs
@@ -24,7 +24,6 @@ use euclid::scale_factor::ScaleFactor;
use gfx::font_cache_task::FontCacheTask;
use ipc_channel::ipc::{self, IpcSender};
use layout_traits::{LayoutControlChan, LayoutTaskFactory};
-use libc;
use msg::compositor_msg::{Epoch, LayerId};
use msg::constellation_msg::AnimationState;
use msg::constellation_msg::Msg as ConstellationMsg;
@@ -48,6 +47,7 @@ use std::collections::HashMap;
use std::io::{self, Write};
use std::marker::PhantomData;
use std::mem::replace;
+use std::process;
use std::sync::mpsc::{Receiver, Sender, channel};
use style::viewport::ViewportConstraints;
use url::Url;
@@ -547,7 +547,7 @@ impl<LTF: LayoutTaskFactory, STF: ScriptTaskFactory> Constellation<LTF, STF> {
// Hard fail exists for test runners so we crash and that's good enough.
let mut stderr = io::stderr();
stderr.write_all("Pipeline failed in hard-fail mode. Crashing!\n".as_bytes()).unwrap();
- unsafe { libc::exit(1); }
+ process::exit(1);
}
self.close_pipeline(pipeline_id, ExitPipelineMode::Force);
diff --git a/components/compositing/lib.rs b/components/compositing/lib.rs
index 0cdafd6af59..5c3be16eff4 100644
--- a/components/compositing/lib.rs
+++ b/components/compositing/lib.rs
@@ -35,7 +35,6 @@ extern crate util;
extern crate gleam;
extern crate clipboard;
-extern crate libc;
extern crate time;
extern crate url;
diff --git a/components/servo/Cargo.lock b/components/servo/Cargo.lock
index 7d655d91ebe..19e7b27de62 100644
--- a/components/servo/Cargo.lock
+++ b/components/servo/Cargo.lock
@@ -178,7 +178,6 @@ dependencies = [
"ipc-channel 0.1.0 (git+https://github.com/pcwalton/ipc-channel)",
"layers 0.1.0 (git+https://github.com/servo/rust-layers)",
"layout_traits 0.0.1",
- "libc 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
"msg 0.0.1",
"net 0.0.1",