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

  1. Submitted-by: sef@kithrup.COM (Sean Eric Fagan)
  2.  
  3. In article <15827@cs.utexas.edu> nix%valis.asd.sgi.com@SGI.COM (Insufficient Dada) writes:
  4. >This behavior breaks
  5. >the subshell handling of GNU Emacs, and apparently interferes with the
  6. >operation of the XView terminal emulator as well.  
  7.  
  8. First of all, emacs needs to do a setsid() in the sub-process; this makes
  9. the pty it's controlling terminal (at least, this is how it works under
  10. SCO's unix).
  11.  
  12. Second of all, because of the problem with tcgetpgrp() on another process'
  13. pty, I added (for my own use) a new ioctl to the pty driver, called TIOCSIG
  14. (as in, ioctl(fd, TIOCSIG, signo)), which sends an arbitray signal to the
  15. process group on fd.  (Since I did it only for emacs, I didn't put in any
  16. checks for security, although I plan on doing so eventually.)
  17.  
  18. I got this idea from a discussion with people at Berkeley.
  19.  
  20. -- 
  21. Sean Eric Fagan  | "I made the universe, but please don't blame me for it;
  22. sef@kithrup.COM  |  I had a bellyache at the time."
  23. -----------------+           -- The Turtle (Stephen King, _It_)
  24. Any opinions expressed are my own, and generally unpopular with others.
  25.  
  26. Volume-Number: Volume 22, Number 31
  27.  
  28.