Commit f3727242 authored by Marius Wachtler's avatar Marius Wachtler

signals: ignore signal pipe like cpython does

parent f5c37a00
......@@ -379,6 +379,16 @@ static int main(int argc, char** argv) {
setvbuf(stderr, (char*)NULL, _IONBF, BUFSIZ);
}
#ifdef SIGPIPE
PyOS_setsig(SIGPIPE, SIG_IGN);
#endif
#ifdef SIGXFZ
PyOS_setsig(SIGXFZ, SIG_IGN);
#endif
#ifdef SIGXFSZ
PyOS_setsig(SIGXFSZ, SIG_IGN);
#endif
if (ASSEMBLY_LOGGING) {
assembler::disassemblyInitialize();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment