collectors[i]->socket = NULL;
if (plugin_thread_create (&collectors[i]->thread,
collectors[i]->socket = NULL;
if (plugin_thread_create (&collectors[i]->thread,
- &ptattr, collect, collectors[i]) != 0) {
+ &ptattr, collect, collectors[i],
+ "email collector") != 0) {
char errbuf[1024];
log_err ("plugin_thread_create() failed: %s",
sstrerror (errno, errbuf, sizeof (errbuf)));
char errbuf[1024];
log_err ("plugin_thread_create() failed: %s",
sstrerror (errno, errbuf, sizeof (errbuf)));
static int email_init (void)
{
if (plugin_thread_create (&connector, NULL,
static int email_init (void)
{
if (plugin_thread_create (&connector, NULL,
sstrncpy (vl.plugin, "email", sizeof (vl.plugin));
sstrncpy (vl.type, type, sizeof (vl.type));
sstrncpy (vl.type_instance, type_instance, sizeof (vl.type_instance));
sstrncpy (vl.plugin, "email", sizeof (vl.plugin));
sstrncpy (vl.type, type, sizeof (vl.type));
sstrncpy (vl.type_instance, type_instance, sizeof (vl.type_instance));