top: Initialize struct sigaction in before().
This commit is contained in:
parent
d69966962c
commit
7fc7062127
@ -3594,6 +3594,7 @@ static void before (char *me) {
|
|||||||
#define SIGRTMAX 32
|
#define SIGRTMAX 32
|
||||||
#endif
|
#endif
|
||||||
// lastly, establish a robust signals environment
|
// lastly, establish a robust signals environment
|
||||||
|
memset(&sa, 0, sizeof(sa));
|
||||||
sigemptyset(&sa.sa_mask);
|
sigemptyset(&sa.sa_mask);
|
||||||
// with user position preserved through SIGWINCH, we must avoid SA_RESTART
|
// with user position preserved through SIGWINCH, we must avoid SA_RESTART
|
||||||
sa.sa_flags = 0;
|
sa.sa_flags = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user