From be4366b0e1a51ce0caab5e4d88a61d9c5fc9583e Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Fri, 14 Aug 2020 17:33:52 +0200 Subject: several fixes and improvments - set errno to 0 if it is checked right after a libc call - ignore SIGPIPE as we want to avoid signal handling where possible - fixed another issue in nDPIsrvd/c-json-stdout which caused buffering errors Signed-off-by: Toni Uhlig --- examples/c-json-stdout/c-json-stdout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/c-json-stdout') diff --git a/examples/c-json-stdout/c-json-stdout.c b/examples/c-json-stdout/c-json-stdout.c index 183d072ee..83af9d12d 100644 --- a/examples/c-json-stdout/c-json-stdout.c +++ b/examples/c-json-stdout/c-json-stdout.c @@ -61,7 +61,7 @@ int main(void) } buf_used += bytes_read; - while (json_bytes == 0 && buf_used >= nDPIsrvd_JSON_BYTES + 1) + while (buf_used >= nDPIsrvd_JSON_BYTES + 1) { if (buf[nDPIsrvd_JSON_BYTES] != '{') { -- cgit v1.2.3