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.
This commit is contained in:
Omar Polo 2021-06-15 08:07:44 +00:00
parent e952c5052a
commit 89c110fe7b
1 changed files with 2 additions and 1 deletions

View File

@ -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 */