aboutsummaryrefslogtreecommitdiff
path: root/regress/fcgi-test.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-06-15 08:07:44 +0000
committerOmar Polo <op@omarpolo.com>2021-06-15 08:07:44 +0000
commit89c110fe7befaee2b446873a351e0833c3c884b6 (patch)
tree02f6295129e6f0632c252642460123e3fe4704a8 /regress/fcgi-test.c
parente952c5052a0c524eee6d8151b1af96ce2c94ca18 (diff)
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.
Diffstat (limited to 'regress/fcgi-test.c')
-rw-r--r--regress/fcgi-test.c3
1 files changed, 2 insertions, 1 deletions
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 <stdint.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -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 */