* Sergey Bugaev: > * getpt, openpty: Opening an unused pty, which can't be our ctty
Please add this as a comment to the open operation. > * shm_open, sem_open: These don't work with ttys > * opendir: Directories are unlikely to be ttys I scrolled through the patch, and it seems to me that all these open calls could use O_NOCTTY. Do you still need a flag because the performance optimization is not about changing the controlling terminal, but about detecting the controlling terminal as such? Thanks, Florian