A problem with errno.(Gotta do something with the return falue of errno)