diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-12-07 17:55:02 +0100 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-12-07 17:55:02 +0100 |
commit | 4fd4c946bd991b0414b0a037b3940369485ced1f (patch) | |
tree | 0ca4c49e289327ca1a489ee82b336271214d1b5f /lib | |
parent | 6a110acc7f2c0413ba856619b4257f66268ec956 (diff) | |
download | abrt-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.cpp | 16 |
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, |