[master] adf381c Ignore SIGPIPE, it causes the test-executing subprocess to bail out before all diagnostics have been gathered.
Poul-Henning Kamp
phk at varnish-cache.org
Tue Oct 25 11:45:09 CEST 2011
commit adf381c8a1159580a8635bfb1de0e259eff9e81e
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Oct 25 08:15:35 2011 +0000
Ignore SIGPIPE, it causes the test-executing subprocess to bail out
before all diagnostics have been gathered.
diff --git a/bin/varnishtest/vtc.c b/bin/varnishtest/vtc.c
index b496f9e..9581b3c 100644
--- a/bin/varnishtest/vtc.c
+++ b/bin/varnishtest/vtc.c
@@ -32,6 +32,7 @@
#include <sys/wait.h>
#include <ctype.h>
+#include <signal.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
@@ -526,6 +527,8 @@ exec_file(const char *fn, const char *script, const char *tmpdir,
FILE *f;
struct extmacro *m;
+ signal(SIGPIPE, SIG_IGN);
+
vtc_loginit(logbuf, loglen);
vltop = vtc_logopen("top");
AN(vltop);
More information about the varnish-commit
mailing list