Andrey A. Chernov 8dd81503df 1) Fix longstanding bug:
trap 'echo xxx' 1 2 3 15
	read x
is not interrupted by ^C (due to restartable read syscall) and must be
interrupted per POSIX
Worse case:
	read -t 5 x
hangs forever after ^C pressed (supposed to timeout after 5 secs)
Fixed by adding siginterrupt(signo, 1) after catch handler installed

2) Do not reinstall sighandler immediately after it is called,
BSD do it for us
1997-11-05 23:33:58 +00:00
..
1997-09-13 16:01:53 +00:00
1997-10-07 16:43:16 +00:00
1997-02-22 14:13:04 +00:00
1997-10-09 11:05:16 +00:00
1997-02-22 14:13:04 +00:00
1997-09-18 06:55:21 +00:00
1997-04-01 23:46:22 +00:00
1997-10-26 10:33:02 +00:00
1997-09-28 08:32:59 +00:00
1997-11-05 23:33:58 +00:00
1997-08-12 21:20:12 +00:00
1997-02-22 14:13:04 +00:00
1997-06-02 06:40:08 +00:00
1997-03-06 15:30:53 +00:00
1997-02-22 14:13:04 +00:00