home *** CD-ROM | disk | FTP | other *** search
- From: gerry@SSD.CSD.HARRIS.COM (Gerry Baumgartner)
-
- Another question about controlling terminals, this time in regard to the
- tcsetpgrp() function.
-
- As I understand the 1003.1 document, and the 1003.3 draft 10 document, the
- following conditions need to be met in order that tcsetpgrp(fildes, pgrp)
- will succeed:
-
- 1. fildes must be valid
-
- no problem here.
-
- 2. the calling process must have a controlling terminal
-
- ok
-
- 3. fildes must be a reference to the controlling terminal
-
- ok
-
- 4. the controlling terminal must be associated with the session of the calling
- process
-
- I really don't understand what this is trying to say. How can *the*
- controlling terminal NOT be associated with the session of the calling
- process? The calling process either doesn't have a controlling terminal
- (covered by 2.), or the one it has is in its session. That's part of the
- definition of a controlling terminal.
-
- 5. pgrp must be in the session of the calling process.
-
- ok.
-
-
- So, if #4 is a valid condition, I can't see what it's saying that the other
- conditions, along with the definition of a controlling terminal, aren't saying.
-
- Can anyone help me out?
- -------------------------------------------------------------------------------
- Gerry Baumgartner | gerry@ssd.csd.harris.com
- System Software Development | or gerry%ssd.csd.harris.com@eddie.mit.edu
- Harris Computer Systems Division | or ...!{mit-eddie,uunet,novavax}!hcx1!gerry
- Fort Lauderdale FL 33309 |
- -------------------------------------------------------------------------------
-
- Volume-Number: Volume 18, Number 25
-
-