Changeset 11500
- Timestamp:
- Dec 11, 2008, 9:17:04 AM (12 years ago)
- Location:
- trunk/source/lisp-kernel
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/lisp-kernel/Threads.h
r11184 r11500 240 240 #endif 241 241 242 extern int thread_suspend_signal, thread_resume_signal; 242 243 #define SIG_KILL_THREAD SIGQUIT /* unless we can find something better */ 244 245 extern int thread_suspend_signal, thread_quit_signal; 243 246 244 247 void * -
trunk/source/lisp-kernel/ppc-exceptions.c
r11147 r11500 2206 2206 { 2207 2207 thread_suspend_signal = SIG_SUSPEND_THREAD; 2208 thread_quit_signal = SIG_KILL_THREAD; 2208 2209 2209 2210 install_signal_handler(thread_suspend_signal, (void *) suspend_resume_handler); -
trunk/source/lisp-kernel/thread_manager.c
r11375 r11500 547 547 548 548 549 int thread_suspend_signal = 0, thread_ resume_signal = 0;549 int thread_suspend_signal = 0, thread_quit_signal = 0; 550 550 551 551 … … 2021 2021 } 2022 2022 #else 2023 if (pthread_kill((pthread_t)osid, SIGQUIT)) {2023 if (pthread_kill((pthread_t)osid,thread_quit_signal)) { 2024 2024 result = false; 2025 2025 } -
trunk/source/lisp-kernel/x86-exceptions.c
r11372 r11500 2023 2023 TCR *tcr = get_tcr(false); 2024 2024 sigset_t mask; 2025 2025 2026 2026 sigemptyset(&mask); 2027 2027 2028 2028 empty_tcr_stacks(tcr); 2029 2029 2030 2030 pthread_sigmask(SIG_SETMASK,&mask,NULL); 2031 2031 pthread_exit(NULL); … … 2110 2110 { 2111 2111 thread_suspend_signal = SIG_SUSPEND_THREAD; 2112 thread_quit_signal = SIG_KILL_THREAD; 2112 2113 2113 2114 install_signal_handler(thread_suspend_signal, (void *)SUSPEND_RESUME_HANDLER); 2114 install_signal_handler( SIGQUIT, (void *)QUIT_HANDLER);2115 install_signal_handler(thread_quit_signal, (void *)QUIT_HANDLER); 2115 2116 } 2116 2117 #endif
Note: See TracChangeset
for help on using the changeset viewer.