On Mon, Jan 16, 2012 at 10:52:58PM -0500, Mike Frysinger wrote:
> this leaves the other fields of sigaction uninitialized.  i think we need:
> 
>       if (command == 0)
>               return 1;
>  
> +     memset(&sa, 0, sizeof(sa));
>       sa.sa_handler = SIG_IGN;
>       sigemptyset(&sa.sa_mask);
> -     sa.sa_flags = 0;
>       sigaction(SIGQUIT, &sa, &save_quit);
>       sigaction(SIGINT, &sa, &save_int);
>       sigaddset(&sa.sa_mask, SIGCHLD);

I didn't realize this. But then, do we need to call sigemptyset() ?

-- 
Richard Braun
_______________________________________________
uClibc mailing list
uClibc@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to