2011-07-19 15:04:21 +02:00
|
|
|
--- ./build/rpmfc.c.orig 2011-07-18 17:40:37.000000000 +0000
|
|
|
|
+++ ./build/rpmfc.c 2011-07-18 17:40:56.000000000 +0000
|
|
|
|
@@ -182,12 +182,14 @@ static int sigpipe_init(void)
|
2011-06-06 13:32:31 +02:00
|
|
|
fcntl(_sigpipe[1], F_SETFD, (fcntl(_sigpipe[1], F_GETFD)|FD_CLOEXEC));
|
|
|
|
/* XXX SIGPIPE too, but NSPR disables it already, dont mess with it */
|
|
|
|
signal(SIGCHLD, sigpipe_handler);
|
|
|
|
+ signal(SIGPIPE, SIG_IGN);
|
|
|
|
return _sigpipe[0];
|
|
|
|
}
|
|
|
|
|
|
|
|
static void sigpipe_finish(void)
|
|
|
|
{
|
|
|
|
signal(SIGCHLD, SIG_DFL);
|
|
|
|
+ signal(SIGPIPE, SIG_DFL);
|
|
|
|
close(_sigpipe[0]);
|
|
|
|
close(_sigpipe[1]);
|
|
|
|
_sigpipe[0] = -1;
|