96ddaeaec5
revert to get rid of hanging build jobs on all workers OBS-URL: https://build.opensuse.org/request/show/73032 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpm?expand=0&rev=142
18 lines
593 B
Diff
18 lines
593 B
Diff
--- build/rpmfc.c.orig 2011-06-06 11:27:32.000000000 +0000
|
|
+++ build/rpmfc.c 2011-06-06 11:28:47.000000000 +0000
|
|
@@ -165,12 +165,14 @@ static int sigpipe_init(void)
|
|
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;
|