comparison src/dispnew.c @ 58986:59945307b86b

* syssignal.h: Declare main_thread. (SIGNAL_THREAD_CHECK): New macro. * keyboard.c (input_available_signal): Move thread checking code to macro SIGNAL_THREAD_CHECK and call that macro. (interrupt_signal): Call SIGNAL_THREAD_CHECK. * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c. * emacs.c: Define main_thread. (main): Initialize main_thread. (handle_USR1_signal, handle_USR2_signal, fatal_error_signal) (memory_warning_signal): Call SIGNAL_THREAD_CHECK. * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK. * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK. * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK. * process.c (send_process_trap, sigchld_handler): Call SIGNAL_THREAD_CHECK. * data.c (arith_error): Call SIGNAL_THREAD_CHECK. * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
author Jan Djärv <jan.h.d@swipnet.se>
date Wed, 15 Dec 2004 21:40:41 +0000
parents a1c4ff636947
children f43d0816e9c3 4ee39d9428b0 eac554634bfa
comparison
equal deleted inserted replaced
58985:0395e55b4aa7 58986:59945307b86b
5992 #ifndef USE_CRT_DLL 5992 #ifndef USE_CRT_DLL
5993 extern int errno; 5993 extern int errno;
5994 #endif 5994 #endif
5995 int old_errno = errno; 5995 int old_errno = errno;
5996 5996
5997 signal (SIGWINCH, window_change_signal);
5998 SIGNAL_THREAD_CHECK (signalnum);
5999
5997 get_frame_size (&width, &height); 6000 get_frame_size (&width, &height);
5998 6001
5999 /* The frame size change obviously applies to a termcap-controlled 6002 /* The frame size change obviously applies to a termcap-controlled
6000 frame. Find such a frame in the list, and assume it's the only 6003 frame. Find such a frame in the list, and assume it's the only
6001 one (since the redisplay code always writes to stdout, not a 6004 one (since the redisplay code always writes to stdout, not a
6014 break; 6017 break;
6015 } 6018 }
6016 } 6019 }
6017 } 6020 }
6018 6021
6019 signal (SIGWINCH, window_change_signal);
6020 errno = old_errno; 6022 errno = old_errno;
6021 } 6023 }
6022 #endif /* SIGWINCH */ 6024 #endif /* SIGWINCH */
6023 6025
6024 6026