- handle fgets gracefully when reading pidfile