Check fcntl result