Changed from siginfo handler to simple signal handler
authorDavid Schleef <ds@schleef.org>
Wed, 27 Jun 2001 22:18:16 +0000 (22:18 +0000)
committerDavid Schleef <ds@schleef.org>
Wed, 27 Jun 2001 22:18:16 +0000 (22:18 +0000)
testing/mmap.c

index 7f1517541319c47390196ae7500866ea70cccff0..7230ad2192f99226eaa27501fa0783ac0fa9f81f 100644 (file)
@@ -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);
 }