update hash function for polling fd