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
This commit is contained in:
Jordan K. Hubbard 1996-08-16 07:53:29 +00:00
parent 8797d8597f
commit 4ade2461ae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17625

View file

@ -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);