[#2212] CID49420:

check the return value of fcntl