fields_len = strsplit (buffer, fields, 64);
if (fields_len < 24)
{
- DEBUG ("`%s' has only %i fields..",
- filename, fields_len);
+ DEBUG ("processes plugin: ps_read_process (pid = %i):"
+ " `%s' has only %i fields..",
+ (int) pid, filename, fields_len);
return (-1);
}
- else if (fields_len != 41)
- {
- DEBUG ("WARNING: (fields_len = %i) != 41", fields_len);
- }
/* copy the name, strip brackets in the process */
name_len = strlen (fields[1]) - 2;
if (listen_thread != (pthread_t) 0)
{
- DEBUG ("unixsock plugin: Sending SIGTERM to listening thread");
pthread_kill (listen_thread, SIGTERM);
- DEBUG ("unixsock plugin: Waiting for thread to terminate");
pthread_join (listen_thread, &ret);
listen_thread = (pthread_t) 0;
}