diff options
| author | varkor <github@varkor.com> | 2018-04-10 23:55:41 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2018-04-11 11:05:13 +0100 |
| commit | 7ab31f6556c2cce433695b113f53d6275edd724d (patch) | |
| tree | 80f61c1d771a22701a2fe3791541ff0372f58125 /src/libstd/sys | |
| parent | 4b9b70c394e7f341b4016fce4cbf763d404b26f9 (diff) | |
| download | rust-7ab31f6556c2cce433695b113f53d6275edd724d.tar.gz rust-7ab31f6556c2cce433695b113f53d6275edd724d.zip | |
Prevent EPIPE causing ICEs in rustc and rustdoc
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/unix/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/unix/mod.rs b/src/libstd/sys/unix/mod.rs index 9bdea945ea4..c1298e5040d 100644 --- a/src/libstd/sys/unix/mod.rs +++ b/src/libstd/sys/unix/mod.rs @@ -80,11 +80,11 @@ pub fn init() { reset_sigpipe(); } - #[cfg(not(any(target_os = "emscripten", target_os="fuchsia")))] + #[cfg(not(any(target_os = "emscripten", target_os = "fuchsia")))] unsafe fn reset_sigpipe() { assert!(signal(libc::SIGPIPE, libc::SIG_IGN) != libc::SIG_ERR); } - #[cfg(any(target_os = "emscripten", target_os="fuchsia"))] + #[cfg(any(target_os = "emscripten", target_os = "fuchsia"))] unsafe fn reset_sigpipe() {} } |
