diff --git a/top/top.c b/top/top.c index e9634f78..3baf7984 100644 --- a/top/top.c +++ b/top/top.c @@ -3594,6 +3594,7 @@ static void before (char *me) { #define SIGRTMAX 32 #endif // lastly, establish a robust signals environment + memset(&sa, 0, sizeof(sa)); sigemptyset(&sa.sa_mask); // with user position preserved through SIGWINCH, we must avoid SA_RESTART sa.sa_flags = 0;