summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-12-07 17:55:02 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2009-12-07 17:55:02 +0100
commit4fd4c946bd991b0414b0a037b3940369485ced1f (patch)
tree0ca4c49e289327ca1a489ee82b336271214d1b5f /lib
parent6a110acc7f2c0413ba856619b4257f66268ec956 (diff)
downloadabrt-4fd4c946bd991b0414b0a037b3940369485ced1f.tar.gz
abrt-4fd4c946bd991b0414b0a037b3940369485ced1f.tar.xz
abrt-4fd4c946bd991b0414b0a037b3940369485ced1f.zip
PyHook: better logic for checking if abrtd is running rhbz#539987
Diffstat (limited to 'lib')
-rw-r--r--lib/Plugins/Python.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/Plugins/Python.cpp b/lib/Plugins/Python.cpp
index a5e9909d..906e815d 100644
--- a/lib/Plugins/Python.cpp
+++ b/lib/Plugins/Python.cpp
@@ -4,7 +4,6 @@
#include "ABRTException.h"
#define FILENAME_BACKTRACE "backtrace"
-#define PYHOOK_CONFIG "/etc/abrt/pyhook.conf"
static std::string CreateHash(const char *pDebugDumpDir)
{
@@ -26,25 +25,10 @@ std::string CAnalyzerPython::GetGlobalUUID(const char *pDebugDumpDir)
void CAnalyzerPython::Init()
{
- std::ofstream fOutPySiteCustomize;
- fOutPySiteCustomize.open(PYHOOK_CONFIG);
- if (fOutPySiteCustomize.is_open())
- {
- fOutPySiteCustomize << "enabled = yes" << std::endl;
- fOutPySiteCustomize.close();
- }
}
void CAnalyzerPython::DeInit()
{
- // TODO: remove copied abrt exception handler
- std::ofstream fOutPySiteCustomize;
- fOutPySiteCustomize.open(PYHOOK_CONFIG);
- if (fOutPySiteCustomize.is_open())
- {
- fOutPySiteCustomize << "enabled = no" << std::endl;
- fOutPySiteCustomize.close();
- }
}
PLUGIN_INFO(ANALYZER,