rebuild ffmpeg for libvpx-1.15.0; fix gcc-14 problem; add patch for new
[oi-userland.git] / components / sysutils / top / patches / 08-winch-segfault-fix.patch
blob41e6f14f192da151551c611c1439b0bef065fbf3
1 https://sourceforge.net/p/unixtop/patches/22/
3 diff -u top-3.8beta1/top.c top-3.8beta1/top.c
4 --- top-3.8beta1/top.c 2008-05-07 11:41:39.000000000 +0800
5 +++ top-3.8beta1/top.c 2017-01-15 18:32:50.000000000 +0800
6 @@ -257,14 +258,14 @@
9 void
10 -set_signals()
11 +set_signals(int set_winch)
14 (void) set_signal(SIGINT, sig_leave);
15 (void) set_signal(SIGQUIT, sig_leave);
16 (void) set_signal(SIGTSTP, sig_tstop);
17 #ifdef SIGWINCH
18 - (void) set_signal(SIGWINCH, sig_winch);
19 + if(set_winch) set_signal(SIGWINCH, sig_winch);
20 #endif
23 @@ -905,7 +906,7 @@
24 screen_init();
26 /* set the signal handlers */
27 - set_signals();
28 + set_signals(gstate->interactive);
30 /* longjmp re-entry point */
31 /* set the jump buffer for long jumps out of signal handlers */