home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.22 / text0029.txt < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.2 KB  |  28 lines

  1. Submitted-by: nix%valis.asd.sgi.com@SGI.COM (Insufficient Dada)
  2.  
  3. POSIX apparently specifies that the TIOCGPGRP ioctl is disabled if
  4. called on a terminal other than the controlling terminal of the
  5. calling process, apparently for security reasons. This behavior breaks
  6. the subshell handling of GNU Emacs, and apparently interferes with the
  7. operation of the XView terminal emulator as well.  GNU Emacs uses ptys
  8. to communicate with shell subprocesses, and attempts to send signals
  9. to the foreground process in a subshell by finding the process group
  10. associated with the (master side of the) pty.
  11.  
  12. With TIOCGPGRP disabled, there seems not to be any way to send signals
  13. to a process running in an inferior shell other than figuring out the
  14. appropriate control character to send through termio to cause the
  15. signal to be sent.
  16.  
  17. Does POSIX have an alternate mechanism for this?  If not, could
  18. someone elaborate on the security problems with allowing a process to
  19. find the pgrp of an arbitrary tty?  How about allowing a process to
  20. find the pgrp of the slave side of a pty when it owns the master side?
  21.  
  22.     Nick
  23.  
  24. Nick Thompson        nix@sgi.com        ...!uunet!sgi!nix
  25.  
  26. Volume-Number: Volume 22, Number 30
  27.  
  28.