Chromium Code Reviews| Index: content/plugin/plugin_main_linux.cc |
| diff --git a/content/plugin/plugin_main_linux.cc b/content/plugin/plugin_main_linux.cc |
| index 6bb9da7dd84012349bdadbfc0c68df26c9bb2a4c..b973ce8d230ddedf3e818479f5d26f01b22ee09c 100644 |
| --- a/content/plugin/plugin_main_linux.cc |
| +++ b/content/plugin/plugin_main_linux.cc |
| @@ -30,7 +30,7 @@ void SignalHandler(int signum, siginfo_t* info, void* void_context) { |
| // need to be careful to handle threads etc. properly. |
| struct sigaction sa; |
| - sa.sa_flags = 0; |
| + memset(&sa, 0, sizeof(sa)); |
|
piman
2011/12/27 17:46:20
Do you think struct sigaction sa = {NULL}; would b
groby-ooo-7-16
2011/12/28 20:36:03
Done.
|
| sigemptyset(&sa.sa_mask); |
| sa.sa_handler = SIG_DFL; |
| sigaction(signum, &sa, NULL); |