home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / std_unix / volume.18 / text0024.txt < prev    next >
Encoding:
Internet Message Format  |  1990-03-18  |  1.6 KB

  1. From: gerry@SSD.CSD.HARRIS.COM (Gerry Baumgartner)
  2.  
  3. Another question about controlling terminals, this time in regard to the
  4. tcsetpgrp() function.
  5.  
  6. As I understand the 1003.1 document, and the 1003.3 draft 10 document, the 
  7. following conditions need to be met in order that tcsetpgrp(fildes, pgrp) 
  8. will succeed:
  9.  
  10. 1. fildes must be valid
  11.    
  12.    no problem here.
  13.     
  14. 2. the calling process must have a controlling terminal
  15.  
  16.    ok
  17.  
  18. 3. fildes must be a reference to the controlling terminal
  19.  
  20.    ok
  21.  
  22. 4. the controlling terminal must be associated with the session of the calling
  23.    process
  24.  
  25.    I really don't understand what this is trying to say.  How can *the* 
  26.    controlling terminal NOT be associated with the session of the calling 
  27.    process?   The calling process either doesn't have a controlling terminal
  28.    (covered by 2.), or the one it has is in its session.   That's part of the
  29.    definition of a controlling terminal.   
  30.  
  31. 5. pgrp must be in the session of the calling process.
  32.  
  33.    ok.
  34.  
  35.  
  36. So, if #4 is a valid condition, I can't see what it's saying that the other
  37. conditions, along with the definition of a controlling terminal, aren't saying.
  38.  
  39. Can anyone help me out?
  40. -------------------------------------------------------------------------------
  41. Gerry Baumgartner                |    gerry@ssd.csd.harris.com 
  42. System Software Development      | or gerry%ssd.csd.harris.com@eddie.mit.edu
  43. Harris Computer Systems Division | or ...!{mit-eddie,uunet,novavax}!hcx1!gerry
  44. Fort Lauderdale FL 33309         |
  45. -------------------------------------------------------------------------------
  46.  
  47. Volume-Number: Volume 18, Number 25
  48.  
  49.