home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!ames!claris!szebra!hienl
- From: hienl@Saigon.COM (Hien Luu)
- Newsgroups: comp.unix.questions
- Subject: Socket and File Descriptor
- Message-ID: <1992Aug22.200016.10654@Saigon.COM>
- Date: 22 Aug 92 20:00:16 GMT
- Distribution: usa
- Organization: Station Zebra Corp, Sunnyvale CA Ph:408-739-1520
- Lines: 12
-
- I was reading about sockets and learned that sockets are referenced by
- file descriptors. I assume this is the same file descriptors that comes
- from the file descriptor table. I also learned that each UNIX process
- has 20 files descriptor at its disposals. What happens if the a process
- reaches the maximum number of allowed file descriptor? Does the process
- get killed by the operating system?
-
- I would appreciate some more explanation the relationship between
- the file descriptor and sockets. Where does the number 20 come from and
- is this a configurable number?
-
- thanks in advance.
-