Skip to content

Commit

Permalink
Resolves #5478 - use std::process::exit instead of lib::exit in const…
Browse files Browse the repository at this point in the history
…ellation.rs
  • Loading branch information
Yoric committed Aug 6, 2015
1 parent b9dcd49 commit d2a3a68
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion components/compositing/Cargo.toml
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions components/compositing/constellation.rs
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion components/compositing/lib.rs
Expand Up @@ -35,7 +35,6 @@ extern crate util;
extern crate gleam;
extern crate clipboard;

extern crate libc;
extern crate time;
extern crate url;

Expand Down
1 change: 0 additions & 1 deletion components/servo/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d2a3a68

Please sign in to comment.