From 3670daf7f9a480d8e87b292ff7051d5be331c6b4 Mon Sep 17 00:00:00 2001 From: Tomohiro Matsuyama Date: Thu, 27 Sep 2012 08:14:13 +0900 Subject: [PATCH] * profiler.c (Fprofiler_cpu_start): Remove unnecessary flag SA_SIGINFO. --- src/ChangeLog | 4 ++++ src/profiler.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 7a5192ad6bf..445090fb2a1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2012-09-26 Tomohiro Matsuyama + + * profiler.c (Fprofiler_cpu_start): Remove unnecessary flag SA_SIGINFO. + 2012-09-26 Juanma Barranquero * makefile.w32-in ($(BLD)/profiler.$(O)): Update dependencies. diff --git a/src/profiler.c b/src/profiler.c index f8fa697d79d..877a42cc98e 100644 --- a/src/profiler.c +++ b/src/profiler.c @@ -214,7 +214,7 @@ static int current_sample_interval; /* Signal handler for sample profiler. */ static void -sigprof_handler (int signal, siginfo_t *info, void *ctx) +sigprof_handler (int signal) { eassert (HASH_TABLE_P (cpu_log)); if (backtrace_list && EQ (*backtrace_list->function, Qautomatic_gc)) @@ -251,8 +251,8 @@ See also `profiler-log-size' and `profiler-max-stack-depth'. */) current_sample_interval = XINT (sample_interval); - sa.sa_sigaction = sigprof_handler; - sa.sa_flags = SA_RESTART | SA_SIGINFO; + sa.sa_handler = sigprof_handler; + sa.sa_flags = SA_RESTART; sigemptyset (&sa.sa_mask); sigaction (SIGPROF, &sa, 0); -- 2.39.2