The return value on success of fcntl(F_SETFL) is not actually specified,
only that it returns -1 on failure.

pointed out by guenther@