Import of r39532 from trunk. Also handle SIGTERM, SEGV, ILL, BUS - not just ABRT. Now the terminal gets reset to default behavior also on regular kills. Properly implement re-raising of signals.
Changed paths: