From a4fb3b20d986063d432719e7f643da30fe84fc94 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 27 Jun 2001 22:18:16 +0000 Subject: [PATCH] Changed from siginfo handler to simple signal handler --- testing/mmap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); } -- 2.26.2