[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: core dump in torture test
From: |
Lucas Gonze |
Subject: |
Re: core dump in torture test |
Date: |
Sun, 20 Oct 2002 12:50:05 -0400 (EDT) |
To resolve this issue, I'm going to plant a note for future devs in the
bug-ncurses archives via this email.
CDK is known to fail if invoked through a signal handler; specifically,
through a SIGCHLD handler. So rather than handling window resizes
asynchronously, as in this example:
void winchange_handler(int signo){
signal(SIGCHLD, SIG_IGN);
if( victim == NULL )
// not initialized yet, so there's no window to change
return;
victim->recalc_window();
signal(SIGWINCH, winchange_handler);
}
You should handle window resizes synchronously, as in this example:
void wait_for_any_key(){
while(true){
switch( wgetch (cursesWin) ){
case KEY_RESIZE:
recalc_window();
break;
default:
return;
}
}
}
- Lucas
- Re: conflict of include name, (continued)
- Re: conflict of include name, Thomas Dickey, 2002/10/19
- Re: conflict of include name, Lucas Gonze, 2002/10/19
- infinite loop in abort handler, Lucas Gonze, 2002/10/19
- core dump in torture test, Lucas Gonze, 2002/10/19
- Re: core dump in torture test, Thomas Dickey, 2002/10/19
- Re: core dump in torture test, Lucas Gonze, 2002/10/19
- Re: core dump in torture test, Thomas Dickey, 2002/10/19
- Re: core dump in torture test, Lucas Gonze, 2002/10/19
- Re: core dump in torture test, Thomas Dickey, 2002/10/19
- Re: core dump in torture test, Lucas Gonze, 2002/10/19
- Re: core dump in torture test,
Lucas Gonze <=
- CDK color map, Lucas Gonze, 2002/10/20
- \n in swindow has no effect, Lucas Gonze, 2002/10/20
- Re: \n in swindow has no effect, Thomas Dickey, 2002/10/20
- horizontal resize + wide swindow causes core dump, Lucas Gonze, 2002/10/21
- Re: horizontal resize + wide swindow causes core dump, Thomas Dickey, 2002/10/21
- Re: horizontal resize + wide swindow causes core dump, Lucas Gonze, 2002/10/21
- Re: horizontal resize + wide swindow causes core dump, Thomas E. Dickey, 2002/10/22
- Re: horizontal resize + wide swindow causes core dump, Lucas Gonze, 2002/10/22
- Re: horizontal resize + wide swindow causes core dump, Thomas E. Dickey, 2002/10/22
- Re: horizontal resize + wide swindow causes core dump, Thomas E. Dickey, 2002/10/22