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
This commit is contained in:
parent
81a3f7bfb5
commit
9a1c80e452
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user