}
}
//-----------------------------------------------------------------------------
-void CatchPROF(int)
-{
-/*STG_LOGGER & WriteServLog = GetStgLogger();
-WriteServLog("CatchPROF");*/
-}
-//-----------------------------------------------------------------------------
void CatchUSR1(int)
{
childExited = true;
}
}
-//-----------------------------------------------------------------------------
+/*//-----------------------------------------------------------------------------
void CatchSEGV(int, siginfo_t *, void *)
{
-/*char fileName[50];
+char fileName[50];
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;
-sigaction(SIGSEGV, &segv_action, &segv_action_old);*/
-}
+sigaction(SIGSEGV, &segv_action, &segv_action_old);
+}*/
//-----------------------------------------------------------------------------
static void SetSignalHandlers()
{
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);