null+****@clear*****
null+****@clear*****
2010年 6月 16日 (水) 13:52:30 JST
Daijiro MORI 2010-06-16 04:52:30 +0000 (Wed, 16 Jun 2010) New Revision: 6801c3d975339b86b2ac1db308ec2c89b9f55161 Log: Added initialization of sa_flags field in sigaction structure. Modified files: lib/ctx.c Modified: lib/ctx.c (+2 -0) =================================================================== --- lib/ctx.c 2010-06-16 03:03:08 +0000 (055443f) +++ lib/ctx.c 2010-06-16 04:52:30 +0000 (fcdb9f4) @@ -2186,6 +2186,7 @@ grn_set_int_handler(void) sigemptyset(&action.sa_mask); action.sa_sigaction = int_handler; + action.sa_flags = SA_SIGINFO; if (sigaction(SIGINT, &action, &old_int_handler)) { SERR("failed to set SIGINT action"); @@ -2205,6 +2206,7 @@ grn_set_term_handler(void) sigemptyset(&action.sa_mask); action.sa_sigaction = term_handler; + action.sa_flags = SA_SIGINFO; if (sigaction(SIGINT, &action, &old_term_handler)) { SERR("failed to set SIGTERM action");