grnet/synnefo — pull request #299 by psomas (2014-10-23 13:37:17+00:00)
Title: collectd: Read only the first line of the pid file

Since qemu doesn't truncate the pid file when it opens / creates it,
there's a chance that the pid file will contain more than one lines,
with truncated older PIDs. Read only the first line of the pid file, to
avoid an exception in the cpustats collectd plugin.