Re: Pass the SIGPROF signal on to previously registered signal handler. (issue 11195045)

1 view
Skip to first unread message

da...@chromium.org

unread,
Oct 19, 2012, 3:43:16 AM10/19/12
to will...@chromium.org, v8-...@googlegroups.com

https://codereview.chromium.org/11195045/diff/1/src/platform-linux.cc
File src/platform-linux.cc (right):

https://codereview.chromium.org/11195045/diff/1/src/platform-linux.cc#newcode80
src/platform-linux.cc:80: static void (*g_old_signal_handler)(int,
siginfo_t *, void *) = NULL;
I don't think you need to store this separately. Add a
"CallOldSignalHandler" method to SignalSender that checks
signal_handler_installed_ and then calls
old_signal_handler_.sa_sigaction. Call that from ProfilerSignalHandler.

https://codereview.chromium.org/11195045/
Reply all
Reply to author
Forward
0 new messages