Skip to content

Commit

Permalink
input: on socket collector creation, return collector id
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper authored and Magnus Sirviö committed Oct 7, 2020
1 parent eb3f7c7 commit 15ef9f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/flb_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,7 @@ int flb_input_collector_running(int coll_id, struct flb_input_instance *in)
return coll->running;
}


int flb_input_pause_all(struct flb_config *config)
{
int paused = 0;
Expand Down Expand Up @@ -942,7 +943,7 @@ int flb_input_set_collector_socket(struct flb_input_instance *in,
mk_list_add(&collector->_head, &config->collectors);
mk_list_add(&collector->_head_ins, &in->collectors);

return 0;
return collector->id;
}

int flb_input_collector_fd(flb_pipefd_t fd, struct flb_config *config)
Expand Down

0 comments on commit 15ef9f2

Please sign in to comment.