Skip to content

Commit f6daa20

Browse files
committed
---
yaml --- r: 78687 b: refs/heads/try c: c0fba3c h: refs/heads/master i: 78685: 166f72a 78683: 1afe27b 78679: d0f7e42 78671: 935e339 78655: f85d834 v: v3
1 parent a4fa17c commit f6daa20

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 25ed29a0edb3d48fef843a0b818ee68faf2252da
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 60fba4d7d677ec098e6a43014132fe99f7547363
5-
refs/heads/try: 10ff5355b3668cb14ffde844abd49457a61c87cc
5+
refs/heads/try: c0fba3c4acc52dba67461e485a3798cfa236761b
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/rt/rust_uv.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,21 @@
1313
#include <malloc.h>
1414
#endif
1515

16+
#ifndef __WIN32__
17+
// for signal
18+
#include <signal.h>
19+
#endif
20+
1621
#include "uv.h"
1722

1823
#include "rust_globals.h"
1924

2025
extern "C" void*
2126
rust_uv_loop_new() {
27+
// XXX libuv doesn't always ignore SIGPIPE even though we don't need it.
28+
#ifndef __WIN32__
29+
signal(SIGPIPE, SIG_IGN);
30+
#endif
2231
return (void*)uv_loop_new();
2332
}
2433

0 commit comments

Comments
 (0)