(SIGPROF) и полностью скрыта функция перехвата сигнала SIGSEGV
}
}
//-----------------------------------------------------------------------------
}
}
//-----------------------------------------------------------------------------
-void CatchPROF(int)
-{
-/*STG_LOGGER & WriteServLog = GetStgLogger();
-WriteServLog("CatchPROF");*/
-}
-//-----------------------------------------------------------------------------
-//-----------------------------------------------------------------------------
+/*//-----------------------------------------------------------------------------
void CatchSEGV(int, siginfo_t *, void *)
{
void CatchSEGV(int, siginfo_t *, void *)
{
sprintf(fileName, "/tmp/stg_segv.%d", getpid());
FILE * f = fopen(fileName, "wt");
if (f)
sprintf(fileName, "/tmp/stg_segv.%d", getpid());
FILE * f = fopen(fileName, "wt");
if (f)
segv_action.sa_flags = SA_SIGINFO;
segv_action.sa_restorer = NULL;
segv_action.sa_flags = SA_SIGINFO;
segv_action.sa_restorer = NULL;
-sigaction(SIGSEGV, &segv_action, &segv_action_old);*/
-}
+sigaction(SIGSEGV, &segv_action, &segv_action_old);
+}*/
//-----------------------------------------------------------------------------
static void SetSignalHandlers()
{
//-----------------------------------------------------------------------------
static void SetSignalHandlers()
{
newsa.sa_mask = sigmask;
newsa.sa_flags = 0;
sigaction(SIGINT, &newsa, &oldsa);
newsa.sa_mask = sigmask;
newsa.sa_flags = 0;
sigaction(SIGINT, &newsa, &oldsa);
-/*///////
-sigemptyset(&sigmask);
-sigaddset(&sigmask, SIGPROF);
-newsa.sa_handler = CatchPROF;
-newsa.sa_mask = sigmask;
-newsa.sa_flags = 0;
-sigaction(SIGPROF, &newsa, &oldsa);*/
//////
sigemptyset(&sigmask);
sigaddset(&sigmask, SIGPIPE);
//////
sigemptyset(&sigmask);
sigaddset(&sigmask, SIGPIPE);