Messages in this thread | | | Date | Tue, 26 Oct 1999 19:18:51 +0530 (IST) | From | SK <> | Subject | file descritor 255 is always associated with /dev/tty[?] ? |
| |
Hi, I am running linux kernel 2.2.9. I have noticed that the file descriptor 255 (apart from fd 0, 1 and 2) of a process is always associated with the controlling terminal device of the process i.e /dev/tty[?] (current->files->fd[255] is not NULL). This is the case with the shell (bash) process and since other processes are forked by shell, this fd is inherited. I looked at the kernel sources and bash source to see who sets this fd 255 but could not find. Can someone please mail me (or give links to references) why this is set, who sets it, and when?
Thanks, Sushil.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |