diff options
author | jkh <jkh@FreeBSD.org> | 1996-08-16 07:53:29 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-08-16 07:53:29 +0000 |
commit | 8425e7babb91765a7e68a708bcafb51fc6983780 (patch) | |
tree | 3e9af70324cca82a3dbab470fb8c89d07ff513fc /lib/libncurses | |
parent | 9529829c33bd9e108b0b402ab6ae0c7f54196615 (diff) | |
download | FreeBSD-src-8425e7babb91765a7e68a708bcafb51fc6983780.zip FreeBSD-src-8425e7babb91765a7e68a708bcafb51fc6983780.tar.gz |
Go back to sigaction again now that Peter has found the problem.
Mine was just a "let's move on" kinda fix, Peter's does it right. :)
Submitted-by: peter
Diffstat (limited to 'lib/libncurses')
-rw-r--r-- | lib/libncurses/lib_newterm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libncurses/lib_newterm.c b/lib/libncurses/lib_newterm.c index 24808e0..95ef1eb 100644 --- a/lib/libncurses/lib_newterm.c +++ b/lib/libncurses/lib_newterm.c @@ -137,14 +137,14 @@ char *use_it = _ncurses_copyright; act.sa_flags = 0; sigaction(SIGTSTP, &act, NULL); act.sa_handler = cleanup; - sigemptyset(&act.sa_mask); - act.sa_flags = 0; sigaction(SIGINT, &act, NULL); sigaction(SIGTERM, &act, NULL); - signal(SIGWINCH, size_change); #if 0 sigaction(SIGSEGV, &act, NULL); #endif + act.sa_handler = size_change; + act.sa_flags = SA_RESTART; + sigaction(SIGWINCH, &act, NULL); /* this must restart read() */ if ((stdscr = newwin(lines - stolen, columns, topstolen, 0)) == NULL) return(NULL); |