]> git.pld-linux.org Git - packages/ElectricFence.git/blame - ElectricFence-longjmp.patch
- ElectricFence patches.
[packages/ElectricFence.git] / ElectricFence-longjmp.patch
CommitLineData
fae448a4 1--- ElectricFence-2.0.5/eftest.c.ewt Tue Jun 2 09:25:10 1998
2+++ ElectricFence-2.0.5/eftest.c Tue Jun 2 09:24:58 1998
3@@ -24,7 +24,7 @@
4 extern int EF_PROTECT_BELOW;
5 extern int EF_ALIGNMENT;
6
7-static jmp_buf env;
8+static sigjmp_buf env;
9
10 /*
11 * There is still too little standardization of the arguments and return
12@@ -40,13 +40,13 @@
13 )
14 {
15 signal(PAGE_PROTECTION_VIOLATED_SIGNAL, SIG_DFL);
16- longjmp(env, 1);
17+ siglongjmp(env, 1);
18 }
19
20 static int
21 gotSegmentationFault(int (*test)(void))
22 {
23- if ( setjmp(env) == 0 ) {
24+ if ( sigsetjmp(env, 1) == 0 ) {
25 int status;
26
27 signal(PAGE_PROTECTION_VIOLATED_SIGNAL
This page took 0.064233 seconds and 4 git commands to generate.