1 |
ulm 08/10/24 19:20:43 |
2 |
|
3 |
Added: cscope-15.6-sigwinch.patch |
4 |
Log: |
5 |
Fix crash on window resizes, bug 243754. |
6 |
(Portage version: 2.2_rc12/cvs/Linux 2.6.26-gentoo-r1 i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-util/cscope/files/cscope-15.6-sigwinch.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cscope/files/cscope-15.6-sigwinch.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/cscope/files/cscope-15.6-sigwinch.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: cscope-15.6-sigwinch.patch |
15 |
=================================================================== |
16 |
--- cscope-15.6-orig/src/main.c 2006/10/10 11:42:17 1.42 |
17 |
+++ cscope-15.6/src/main.c 2006/10/23 12:37:36 1.43 |
18 |
@@ -154,12 +154,7 @@ |
19 |
yyout = stdout; |
20 |
/* save the command name for messages */ |
21 |
argv0 = argv[0]; |
22 |
-#if defined(KEY_RESIZE) && !defined(__DJGPP__) |
23 |
- winch_action.sa_sigaction = sigwinch_handler; |
24 |
- sigemptyset(&winch_action.sa_mask); |
25 |
- winch_action.sa_flags = SA_SIGINFO; |
26 |
- sigaction(SIGWINCH,&winch_action,NULL); |
27 |
-#endif |
28 |
+ |
29 |
/* set the options */ |
30 |
while (--argc > 0 && (*++argv)[0] == '-') { |
31 |
/* HBB 20030814: add GNU-style --help and --version options */ |
32 |
@@ -404,6 +399,13 @@ |
33 |
signal(SIGINT, SIG_IGN); /* ignore interrupts */ |
34 |
signal(SIGPIPE, SIG_IGN);/* | command can cause pipe signal */ |
35 |
|
36 |
+#if defined(KEY_RESIZE) && !defined(__DJGPP__) |
37 |
+ winch_action.sa_sigaction = sigwinch_handler; |
38 |
+ sigemptyset(&winch_action.sa_mask); |
39 |
+ winch_action.sa_flags = SA_SIGINFO; |
40 |
+ sigaction(SIGWINCH,&winch_action,NULL); |
41 |
+#endif |
42 |
+ |
43 |
/* initialize the curses display package */ |
44 |
initscr(); /* initialize the screen */ |
45 |
entercurses(); |