patch applied (ghc): catch SIGTSTP and save/restore terminal settings (#4460)

Simon Marlow marlowsd at gmail.com
Fri Jan 7 14:47:52 CET 2011


Fri Jan  7 04:40:42 PST 2011  Simon Marlow <marlowsd at gmail.com>
  * catch SIGTSTP and save/restore terminal settings (#4460)
  As far as I can tell, it is the responsibility of the program to save
  and restore its own terminal settings across a suspend/foreground, the
  shell doesn't do it (which seems odd).  So I've added a signal handler
  for SIGTSTP to the RTS which will save and restore the terminal
  settings iff we modified them with hSetBuffering or hSetEcho (we
  already restore them at exit time in these cases).

    M ./rts/posix/Signals.c +77

View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=ghc;a=darcs_commitdiff;h=20110107124042-12142-cdc8468ee6b7d7118319ed414a2abd535b6fd7e4.gz



More information about the Cvs-ghc mailing list