1 |
alexxy 11/02/24 10:24:42 |
2 |
|
3 |
Modified: |
4 |
0009-daemon-don-t-mask-SEGV-just-crash-and-dump-core.patch |
5 |
Log: |
6 |
[net-wireless/wimax] Fix bug #356221 |
7 |
|
8 |
(Portage version: 2.2.0_alpha25/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.2 net-wireless/wimax/files/updates/0009-daemon-don-t-mask-SEGV-just-crash-and-dump-core.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/wimax/files/updates/0009-daemon-don-t-mask-SEGV-just-crash-and-dump-core.patch?rev=1.2&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/wimax/files/updates/0009-daemon-don-t-mask-SEGV-just-crash-and-dump-core.patch?rev=1.2&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/wimax/files/updates/0009-daemon-don-t-mask-SEGV-just-crash-and-dump-core.patch?r1=1.1&r2=1.2 |
16 |
|
17 |
Index: 0009-daemon-don-t-mask-SEGV-just-crash-and-dump-core.patch |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-wireless/wimax/files/updates/0009-daemon-don-t-mask-SEGV-just-crash-and-dump-core.patch,v |
20 |
retrieving revision 1.1 |
21 |
retrieving revision 1.2 |
22 |
diff -u -r1.1 -r1.2 |
23 |
--- 0009-daemon-don-t-mask-SEGV-just-crash-and-dump-core.patch 23 Feb 2011 11:12:08 -0000 1.1 |
24 |
+++ 0009-daemon-don-t-mask-SEGV-just-crash-and-dump-core.patch 24 Feb 2011 10:24:42 -0000 1.2 |
25 |
@@ -55,46 +55,6 @@ |
26 |
signal(SIGINT, stop_signal_handler); |
27 |
diff --git a/InfraStack/OSDependent/Linux/wimaxcu/wimaxcu.c b/InfraStack/OSDependent/Linux/wimaxcu/wimaxcu.c |
28 |
index ad187c4..dfa94db 100644 |
29 |
---- a/InfraStack/OSDependent/Linux/wimaxcu/wimaxcu.c |
30 |
-+++ b/InfraStack/OSDependent/Linux/wimaxcu/wimaxcu.c |
31 |
-@@ -3055,7 +3055,7 @@ void print_callstack_to_file(int sig, siginfo_t *info, |
32 |
- // printf("Came here %d\n", __LINE__); |
33 |
- char command[MAX_STR_LEN + MAX_FILENAME_LEN]; |
34 |
- /* Do something useful with siginfo_t */ |
35 |
-- if ((sig != SIGSEGV) && (sig != SIGINT)) { |
36 |
-+ if (sig != SIGINT) { |
37 |
- syslog(LOG_ERR,"Got signal %d#92", sig); |
38 |
- // printf("Came here %d\n", __LINE__); |
39 |
- return; |
40 |
-@@ -3136,20 +3136,6 @@ void wimaxcu_signal_handler(int sig, siginfo_t *info, |
41 |
- printf("Please check /var/log/wimax folder \n"); |
42 |
- |
43 |
- print_callstack_to_file(sig, info, secret); |
44 |
-- |
45 |
-- |
46 |
-- // kalyan |
47 |
-- // If wimaxcu recieved segmentation fault |
48 |
-- // Stack might be corrupted |
49 |
-- // So it is good idea to just exit |
50 |
-- // This may recives some system resources hanging |
51 |
-- |
52 |
-- if(sig == SIGSEGV) { |
53 |
-- printf("Exit \n"); |
54 |
-- exit(0); |
55 |
-- } |
56 |
-- |
57 |
-- |
58 |
- wimaxcu_stop_signal_handler(sig); |
59 |
- |
60 |
- } |
61 |
-@@ -3191,7 +3177,6 @@ int main(int argc, char *argv[]) |
62 |
- sigemptyset (&sa.sa_mask); |
63 |
- sa.sa_flags = SA_RESTART | SA_SIGINFO; |
64 |
- |
65 |
-- sigaction(SIGSEGV, &sa, NULL); |
66 |
- sigaction(SIGUSR1, &sa, NULL); |
67 |
- |
68 |
- signal(SIGINT, wimaxcu_stop_signal_handler); |
69 |
diff --git a/InfraStack/OSDependent/Linux/wimaxcu/wimaxcu_main.c b/InfraStack/OSDependent/Linux/wimaxcu/wimaxcu_main.c |
70 |
index faf0f36..d14a2ae 100644 |
71 |
--- a/InfraStack/OSDependent/Linux/wimaxcu/wimaxcu_main.c |