Hoping this list is alive...
I am using Solaris 8 which have BSD semantics for signals, so I've
changed signal to sigaction in two places. The other places are not that
important but should perhaps be changed as well.
So now C-c works more than once :)
Patch attached.
n.
--
[ http://www.dtek.chalmers.se/~d95mback/ ] [ PGP: 0x453504F1 ] [ UIN: 4439498 ]
Opinions expressed above are mine, and not those of my future employees.
Skingra er! Det finns ingenting att f�rst�!
SIGBORE: Signature boring error, core dumped
-- Attached file included as plaintext by Listar --
Index: screen.c
===================================================================
RCS file: /home/cvs/irssi/src/fe-text/screen.c,v
retrieving revision 1.13
diff -u -r1.13 screen.c
--- screen.c 2000/10/08 12:54:26 1.13
+++ screen.c 2000/10/24 15:04:29
@@ -111,6 +111,7 @@
{
char ansi_tab[8] = { 0, 4, 2, 6, 1, 5, 3, 7 };
int num;
+ struct sigaction act;
if (!initscr())
return FALSE;
@@ -118,9 +119,13 @@
if (COLS < MIN_SCREEN_WIDTH)
COLS = MIN_SCREEN_WIDTH;
- signal(SIGINT, sigint_handler);
+ sigemptyset (&act.sa_mask);
+ act.sa_flags = 0;
+ act.sa_handler = sigint_handler;
+ sigaction(SIGINT, &act, NULL);
#ifdef SIGWINCH
- signal(SIGWINCH, sig_winch);
+ act.sa_handler = sig_winch;
+ sigaction(SIGWINCH, &act, NULL);
#endif
cbreak(); noecho(); idlok(stdscr, 1);
#ifdef HAVE_CURSES_IDCOK