mirror of https://github.com/omar-polo/gmid.git
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:
parent
e952c5052a
commit
89c110fe7b
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue