'Retrieve a PidfileContents object for the given pidfile_id.  If
use_second_read is True, use results that were read after the processes
were checked, instead of before.'

def get_pidfile_contents(self, pidfile_id, use_second_read=False):

    self._reset_pidfile_age(pidfile_id)
    if use_second_read:
        pidfile_map = self._pidfiles_second_read
    else:
        pidfile_map = self._pidfiles
    return pidfile_map.get(pidfile_id, PidfileContents())
