]> code.delx.au - gnu-emacs/commitdiff
* profiler.c (Fprofiler_cpu_start): Remove unnecessary flag SA_SIGINFO.
authorTomohiro Matsuyama <tomo@cx4a.org>
Wed, 26 Sep 2012 23:14:13 +0000 (08:14 +0900)
committerTomohiro Matsuyama <tomo@cx4a.org>
Wed, 26 Sep 2012 23:14:13 +0000 (08:14 +0900)
src/ChangeLog
src/profiler.c

index 7a5192ad6bf82660907bea669a14473ce714bd86..445090fb2a1eee81d98f91eaebe46666d6f65f18 100644 (file)
@@ -1,3 +1,7 @@
+2012-09-26  Tomohiro Matsuyama  <tomo@cx4a.org>
+
+       * profiler.c (Fprofiler_cpu_start): Remove unnecessary flag SA_SIGINFO.
+
 2012-09-26  Juanma Barranquero  <lekktu@gmail.com>
 
        * makefile.w32-in ($(BLD)/profiler.$(O)): Update dependencies.
index f8fa697d79dd628cacdfa14d7ff90058ec722074..877a42cc98ed6f39acdc18fed349bbaf9bbcb3ee 100644 (file)
@@ -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);