예제 #1
0
파일: exception.c 프로젝트: ELMERzark/chuck
chk_expn_thd *chk_exp_get_thread_expn() {
    if(!_exception_st) {
        _exception_st = calloc(1,sizeof(*_exception_st));
		list_init(&_exception_st->expstack);	
		setup_sigsegv();
		setup_sigbus();
		setup_sigfpe();
		pthread_atfork(NULL,NULL,reset_perthread_exception_st);        
    }
    return _exception_st;
}
예제 #2
0
static void __attribute((constructor)) init(void) {
    setup_sigsegv();
}
예제 #3
0
파일: exception.c 프로젝트: Oooocean/chuck
__attribute__((constructor(103))) static void chk_sig_init() {
	setup_sigsegv();
	setup_sigbus();
	setup_sigfpe();
}
예제 #4
0
파일: main.c 프로젝트: 10jschen/acl
int main(void)
{
	setup_sigsegv();
	trace();
	return (0);
}