Use pthread_kill for V8/Solaris sampling

pull/22966/head
Ryan Dahl 2011-03-11 03:08:42 +00:00
parent 6802c90d1f
commit 12c02b378d
1 changed files with 1 additions and 5 deletions

View File

@ -673,11 +673,7 @@ class Sampler::PlatformData : public Malloced {
void SendProfilingSignal() { void SendProfilingSignal() {
if (!signal_handler_installed_) return; if (!signal_handler_installed_) return;
/* pthread_kill(vm_tid_, SIGPROF);
// Glibc doesn't provide a wrapper for tgkill(2).
syscall(SYS_tgkill, vm_tgid_, vm_tid_, SIGPROF);
*/
kill(vm_tgid_, SIGPROF);
} }
void Sleep(SleepInterval full_or_half) { void Sleep(SleepInterval full_or_half) {