understand what is poll now
align all steps to comply with linux coding style