bb6093 - check return value of fcntl