Initialize the sa_flags member of an auto struct sigaction variable.

It contained whatever garbage happened to be on the stack.

PR:		bin/27457 (not confirmed yet, but almost certain)
MFC after:	1 day
This commit is contained in:
John Polstra 2001-06-06 21:08:15 +00:00
parent 77a7881dac
commit c95abc0ee8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77838

View File

@ -651,6 +651,7 @@ main(argc,argv)
sigaddset(&sa.sa_mask, SIGALRM);
sigaddset(&sa.sa_mask, SIGINT);
sa.sa_handler = async_handler;
sa.sa_flags = 0;
sigaction(SIGIO, &sa, NULL);