Re: fd allocation [was: light weight user level semaphores]

Olaf Titz
2001-04-22T10:03:39Z

> So, IMHO as long as some library does not mess with fds 0, 1, and 2
> it should be ok [1]. Yes, it would be against the standard but I
>...
> [1] Unintentionally setting the controlling tty may be a problem.

The controlling tty is not what is first opened to fd 0 but what is
first opened, so this problem can occur at any time.

Olaf