Skip to content

Commit

Permalink
Rollup merge of rust-lang#67977 - Wind-River:master_2020, r=alexcrichton
Browse files Browse the repository at this point in the history
Updates for VxWorks

r? @alexcrichton
  • Loading branch information
Centril committed Jan 7, 2020
2 parents efce4ca + cec957e commit 567e61d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 66 deletions.
12 changes: 2 additions & 10 deletions src/libstd/sys/vxworks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,10 @@ pub use crate::sys_common::os_str_bytes as os_str;

#[cfg(not(test))]
pub fn init() {
// By default, some platforms will send a *signal* when an EPIPE error
// would otherwise be delivered. This runtime doesn't install a SIGPIPE
// handler, causing it to kill the program, which isn't exactly what we
// want!
//
// Hence, we set SIGPIPE to ignore when the program starts up in order
// to prevent this problem.
// ignore SIGPIPE
unsafe {
reset_sigpipe();
assert!(signal(libc::SIGPIPE, libc::SIG_IGN) != libc::SIG_ERR);
}

unsafe fn reset_sigpipe() {}
}

pub use libc::signal;
Expand Down
56 changes: 0 additions & 56 deletions src/libstd/sys/vxworks/weak.rs

This file was deleted.

0 comments on commit 567e61d

Please sign in to comment.