From 85362c350e425fb63bf45766b521c9496b28c57a Mon Sep 17 00:00:00 2001 From: "Higepon (MINOWA Taro)" Date: Sat, 15 May 2010 18:38:30 +0900 Subject: [PATCH] (Green) This fixes profiler SEGV? --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 4ef764521..1e864a0ad 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -149,7 +149,9 @@ void showUsage() #ifdef ENABLE_PROFILER void signal_handler(int signo) { - theVM->collectProfile(); + if (signo == SIGPROF) { + theVM->collectProfile(); + } } #endif