Skip to content

Commit c0fba3c

Browse files
committed
rt: re-adding lines erroneous stripped out in merge conflict
1 parent 10ff535 commit c0fba3c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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)