1 $NetBSD: patch-ab,v 1.1 2005/12/03 16:46:32 christos Exp $
3 --- src/console.c.orig 2004-01-05 07:27:46.000000000 +0000
5 @@ -388,7 +388,22 @@ public void ConsoleSetUp()
6 signal( SIGINT, InterruptIgnoreHandler );
10 +#ifdef HAVE_SIGACTION
11 + struct sigaction sa;
13 + sigemptyset( &sa.sa_mask );
17 + sa.sa_flags = SA_RESTART;
19 + sa.sa_handler = WindowChangeHandler;
20 + (void)sigaction( SIGWINCH, &sa, NULL );
22 + sa.sa_handler = InterruptHandler;
23 + (void)sigaction( SIGINT, &sa, NULL );
28 sigVec.sv_handler = WindowChangeHandler;
29 @@ -400,12 +415,13 @@ public void ConsoleSetUp()
30 sigVec.sv_mask = sigmask( SIGINT );
31 sigVec.sv_flags = SV_INTERRUPT;
32 sigvec( SIGINT, &sigVec, NULL );
37 signal( SIGWINCH, WindowChangeHandler );
40 signal( SIGINT, InterruptHandler );
41 -#endif /* HAVE_SIGVEC */
42 +# endif /* SV_INTERRUPT */
43 +#endif /* HAVE_SIGACTION */