From: David Schleef Date: Wed, 27 Jun 2001 22:18:16 +0000 (+0000) Subject: Changed from siginfo handler to simple signal handler X-Git-Tag: r0_7_16~52 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a4fb3b20d986063d432719e7f643da30fe84fc94;p=comedilib.git Changed from siginfo handler to simple signal handler --- diff --git a/testing/mmap.c b/testing/mmap.c index 7f15175..7230ad2 100644 --- a/testing/mmap.c +++ b/testing/mmap.c @@ -28,7 +28,7 @@ jmp_buf jump_env; -void segv_handler(int num,siginfo_t *si,void *x) +void segv_handler(int num) { longjmp(jump_env,1); } @@ -48,8 +48,7 @@ void setup_segfaulter(void) struct sigaction act; memset(&act,0,sizeof(act)); - act.sa_sigaction=&segv_handler; - act.sa_flags = SA_SIGINFO; + act.sa_handler=&segv_handler; sigaction(SIGSEGV,&act,NULL); }