From: vitalyr@chromium.org Date: Wed, 27 Oct 2010 12:45:46 +0000 (+0000) Subject: Profiler on linux: use SA_RESTART signal flag to have most of the syscalls restarted... X-Git-Tag: upstream/4.7.83~21028 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a1c80e452e787b6c36a6121d47342ddef135974;p=platform%2Fupstream%2Fv8.git 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 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5720 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/platform-linux.cc b/src/platform-linux.cc index eefaec9..c0eb213 100644 --- a/src/platform-linux.cc +++ b/src/platform-linux.cc @@ -856,7 +856,7 @@ void Sampler::Start() { 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;