From 4744fe9d82281dd743a92bec37e27e1b4777ba66 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Wed, 8 Dec 2010 16:53:45 +0200 Subject: [PATCH] =?utf8?q?=D0=98=D0=B7=20Stargazer=20=D1=83=D0=B1=D1=80?= =?utf8?q?=D0=B0=D0=BD=D0=B0=20=D0=BF=D0=BE=D0=BB=D0=BD=D0=BE=D1=81=D1=82?= =?utf8?q?=D1=8C=D1=8E=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D1=8F=20?= =?utf8?q?=D0=BF=D0=B5=D1=80=D0=B5=D1=85=D0=B2=D0=B0=D1=82=D0=B0=20=D1=81?= =?utf8?q?=D0=B8=D0=B3=D0=BD=D0=B0=D0=BB=D0=B0=20=D0=BF=D1=80=D0=BE=D1=84?= =?utf8?q?=D0=B8=D0=BB=D0=B8=D1=80=D0=BE=D0=B2=D1=89=D0=B8=D0=BA=D0=B0=20(?= =?utf8?q?SIGPROF)=20=D0=B8=20=D0=BF=D0=BE=D0=BB=D0=BD=D0=BE=D1=81=D1=82?= =?utf8?q?=D1=8C=D1=8E=20=D1=81=D0=BA=D1=80=D1=8B=D1=82=D0=B0=20=D1=84?= =?utf8?q?=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D1=8F=20=D0=BF=D0=B5=D1=80=D0=B5?= =?utf8?q?=D1=85=D0=B2=D0=B0=D1=82=D0=B0=20=D1=81=D0=B8=D0=B3=D0=BD=D0=B0?= =?utf8?q?=D0=BB=D0=B0=20SIGSEGV?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- projects/stargazer/main.cpp | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/projects/stargazer/main.cpp b/projects/stargazer/main.cpp index 7c9945b0..26eba647 100644 --- a/projects/stargazer/main.cpp +++ b/projects/stargazer/main.cpp @@ -128,12 +128,6 @@ else } } //----------------------------------------------------------------------------- -void CatchPROF(int) -{ -/*STG_LOGGER & WriteServLog = GetStgLogger(); -WriteServLog("CatchPROF");*/ -} -//----------------------------------------------------------------------------- void CatchUSR1(int) { @@ -203,10 +197,10 @@ if (childPid == stgChildPid) 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) @@ -254,8 +248,8 @@ segv_action.sa_sigaction = 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() { @@ -282,13 +276,6 @@ newsa.sa_handler = CatchTERM; 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); -- 2.44.2