Revision: 5720
Author: [email protected]
Date: Wed Oct 27 05:45:46 2010
Log: Profiler on linux: use SA_RESTART signal flag to have most of the
syscalls restarted for us.
This change keeps the interactive shell alive.
Review URL: http://codereview.chromium.org/4197002
http://code.google.com/p/v8/source/detail?r=5720
Modified:
/branches/bleeding_edge/src/platform-linux.cc
=======================================
--- /branches/bleeding_edge/src/platform-linux.cc Tue Oct 26 07:51:31 2010
+++ /branches/bleeding_edge/src/platform-linux.cc Wed Oct 27 05:45:46 2010
@@ -856,7 +856,7 @@
struct sigaction sa;
sa.sa_sigaction = ProfilerSignalHandler;
sigemptyset(&sa.sa_mask);
- sa.sa_flags = SA_SIGINFO;
+ sa.sa_flags = SA_RESTART | SA_SIGINFO;
if (sigaction(SIGPROF, &sa, &data_->old_signal_handler_) != 0) return;
data_->signal_handler_installed_ = true;
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev