From 12c02b378db65b047e9a7ebcc06047265652de5e Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 11 Mar 2011 03:08:42 +0000 Subject: [PATCH] Use pthread_kill for V8/Solaris sampling --- deps/v8/src/platform-solaris.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/deps/v8/src/platform-solaris.cc b/deps/v8/src/platform-solaris.cc index 8dd0f4b0c0..6051fb0c4f 100644 --- a/deps/v8/src/platform-solaris.cc +++ b/deps/v8/src/platform-solaris.cc @@ -673,11 +673,7 @@ class Sampler::PlatformData : public Malloced { void SendProfilingSignal() { if (!signal_handler_installed_) return; - /* - // Glibc doesn't provide a wrapper for tgkill(2). - syscall(SYS_tgkill, vm_tgid_, vm_tid_, SIGPROF); - */ - kill(vm_tgid_, SIGPROF); + pthread_kill(vm_tid_, SIGPROF); } void Sleep(SleepInterval full_or_half) {