From 89c110fe7befaee2b446873a351e0833c3c884b6 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Tue, 15 Jun 2021 08:07:44 +0000 Subject: be quieter nobody really cares if must_read fails, as it normally shouldn't. It only clutters the regression tests with scary messages that looks like failure but are, in fact, expected. --- regress/fcgi-test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'regress/fcgi-test.c') diff --git a/regress/fcgi-test.c b/regress/fcgi-test.c index da4bc18..96247a4 100644 --- a/regress/fcgi-test.c +++ b/regress/fcgi-test.c @@ -23,6 +23,7 @@ #include #include +#include #include #include @@ -114,7 +115,7 @@ static void read_header(struct fcgi_header *hdr) { if (must_read(0, hdr, sizeof(*hdr)) == -1) - errx(1, "must_read failed"); + exit(1); } /* read and consume a record of the given type */ -- cgit v1.2.3