summaryrefslogtreecommitdiff
path: root/sys-process/unixtop/files/unixtop-3.8_beta1-winch-segfault.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-06-13 10:39:22 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-06-13 10:39:22 +0100
commit9452a6e87b6c2c70513bc47a2470bf9f1168920e (patch)
tree8ac67e26b45f34d71c5aab3621813b100a0d5f00 /sys-process/unixtop/files/unixtop-3.8_beta1-winch-segfault.patch
parentf516638b7fe9592837389826a6152a7e1b251c54 (diff)
gentoo resync : 13.06.2020
Diffstat (limited to 'sys-process/unixtop/files/unixtop-3.8_beta1-winch-segfault.patch')
-rw-r--r--sys-process/unixtop/files/unixtop-3.8_beta1-winch-segfault.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/sys-process/unixtop/files/unixtop-3.8_beta1-winch-segfault.patch b/sys-process/unixtop/files/unixtop-3.8_beta1-winch-segfault.patch
new file mode 100644
index 000000000000..e00e4052eb4f
--- /dev/null
+++ b/sys-process/unixtop/files/unixtop-3.8_beta1-winch-segfault.patch
@@ -0,0 +1,31 @@
+https://sourceforge.net/p/unixtop/patches/22/
+
+diff -u top-3.8beta1/top.c top-3.8beta1-rivoreo-r1/top.c
+--- top-3.8beta1/top.c 2008-05-07 11:41:39.000000000 +0800
++++ top-3.8beta1-rivoreo-r1/top.c 2017-01-15 18:32:50.000000000 +0800
+@@ -257,14 +258,14 @@
+ }
+
+ void
+-set_signals()
++set_signals(int set_winch)
+
+ {
+ (void) set_signal(SIGINT, sig_leave);
+ (void) set_signal(SIGQUIT, sig_leave);
+ (void) set_signal(SIGTSTP, sig_tstop);
+ #ifdef SIGWINCH
+- (void) set_signal(SIGWINCH, sig_winch);
++ if(set_winch) set_signal(SIGWINCH, sig_winch);
+ #endif
+ }
+
+@@ -905,7 +906,7 @@
+ screen_init();
+
+ /* set the signal handlers */
+- set_signals();
++ set_signals(gstate->interactive);
+
+ /* longjmp re-entry point */
+ /* set the jump buffer for long jumps out of signal handlers */