Changes:
- $Id: signal.c 4921 2006-05-15 14:24:36Z twisti $
+ $Id: signal.c 5038 2006-06-19 22:22:34Z twisti $
*/
sigaction(SIGINT, &act, NULL);
-
/* catch SIGQUIT for thread dump */
#if defined(ENABLE_THREADS)
sigaction(SIGUSR1, &act, NULL);
#endif
#endif
+
+#if defined(ENABLE_THREADS) && defined(ENABLE_PROFILING)
+ /* install signal handler for profiling sampling */
+
+ act.sa_sigaction = md_signal_handler_sigusr2;
+ act.sa_flags = SA_SIGINFO;
+ sigaction(SIGUSR2, &act, NULL);
+#endif
}