We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd54540 commit 71eb3e1Copy full SHA for 71eb3e1
plugins/in_docker_events/docker_events.c
@@ -39,6 +39,7 @@
39
*/
40
static int de_unix_create(struct flb_in_de_config *ctx)
41
{
42
+ ssize_t bytes;
43
unsigned long len;
44
size_t address_length;
45
struct sockaddr_un address;
@@ -65,7 +66,11 @@ static int de_unix_create(struct flb_in_de_config *ctx)
65
66
write(ctx->fd, request, strlen(request));
67
68
/* Read the initial http response */
- read(ctx->fd, ctx->buf, ctx->buf_size - 1);
69
+ bytes = read(ctx->fd, ctx->buf, ctx->buf_size - 1);
70
+ if (bytes == -1) {
71
+ flb_errno();
72
+ }
73
+ flb_plg_debug(ctx->ins, "read %zu bytes from socket", bytes);
74
75
return 0;
76
}
0 commit comments