Searched hist:"8 dd81503df9a78ea78c7de0613eb5b91d91f35d2" (Results 1 – 1 of 1) sorted by relevance
/freebsd/bin/sh/ |
H A D | trap.c | diff 8dd81503df9a78ea78c7de0613eb5b91d91f35d2 Thu Nov 06 00:33:58 CET 1997 Andrey A. Chernov <ache@FreeBSD.org> 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 diff 8dd81503df9a78ea78c7de0613eb5b91d91f35d2 Thu Nov 06 00:33:58 CET 1997 Andrey A. Chernov <ache@FreeBSD.org> 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
|