We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f68514c commit 88f7183Copy full SHA for 88f7183
src/libstd/rt/uv/uvll.rs
@@ -172,6 +172,7 @@ fn request_sanity_check() {
172
}
173
174
175
+// XXX Event loops ignore SIGPIPE by default.
176
pub unsafe fn loop_new() -> *c_void {
177
#[fixed_stack_segment]; #[inline(never)];
178
src/rt/rust_uv.cpp
@@ -13,12 +13,21 @@
13
#include <malloc.h>
14
#endif
15
16
+#ifndef __WIN32__
17
+// for signal
18
+#include <signal.h>
19
+#endif
20
+
21
#include "uv.h"
22
23
#include "rust_globals.h"
24
25
extern "C" void*
26
rust_uv_loop_new() {
27
+// XXX libuv doesn't always ignore SIGPIPE even though we don't need it.
28
29
+ signal(SIGPIPE, SIG_IGN);
30
31
return (void*)uv_loop_new();
32
33
0 commit comments