Browse Source

Use pthread_kill for V8/Solaris sampling

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
12c02b378d
  1. 6
      deps/v8/src/platform-solaris.cc

6
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) {

Loading…
Cancel
Save