projects
/
comedilib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93ec934
)
Changed from siginfo handler to simple signal handler
author
David Schleef
<ds@schleef.org>
Wed, 27 Jun 2001 22:18:16 +0000
(22:18 +0000)
committer
David Schleef
<ds@schleef.org>
Wed, 27 Jun 2001 22:18:16 +0000
(22:18 +0000)
testing/mmap.c
patch
|
blob
|
history
diff --git
a/testing/mmap.c
b/testing/mmap.c
index 7f1517541319c47390196ae7500866ea70cccff0..7230ad2192f99226eaa27501fa0783ac0fa9f81f 100644
(file)
--- 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);
}