Bug 1027300: Check for ioctl error return. r=mt