(play): Failed to initialized sa.sa_mask.
This commit is contained in:
parent
2b312fd943
commit
cd41560fbc
1 changed files with 1 additions and 0 deletions
|
@ -455,6 +455,7 @@ play(int sock)
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
sa.sa_flags = 0;
|
sa.sa_flags = 0;
|
||||||
|
sigemptyset(&sa.sa_mask);
|
||||||
sa.sa_handler = intr;
|
sa.sa_handler = intr;
|
||||||
sigaction(SIGINT, &sa, NULL);
|
sigaction(SIGINT, &sa, NULL);
|
||||||
sa.sa_handler = SIG_IGN;
|
sa.sa_handler = SIG_IGN;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue