1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

sigpipe patch

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2001-02-19 07:39:20 +00:00
parent aaa61a2950
commit 74848dd1dc

View file

@ -386,6 +386,16 @@ sigsegv(sig)
}
#endif
#ifdef SIGPIPE
static RETSIGTYPE sigsegv _((int));
static RETSIGTYPE
sigpipe(sig)
int sig;
{
/* do nothing */
}
#endif
void
rb_trap_exit()
{
@ -546,7 +556,7 @@ trap(arg)
#endif
#ifdef SIGPIPE
case SIGPIPE:
func = SIG_IGN;
func = sigpipe;
break;
#endif
}
@ -659,7 +669,7 @@ Init_signal()
ruby_signal(SIGSEGV, sigsegv);
#endif
#ifdef SIGPIPE
ruby_signal(SIGPIPE, SIG_IGN);
ruby_signal(SIGPIPE, sigpipe);
#endif
#endif /* MACOS_UNUSE_SIGNAL */
}