diff options
Diffstat (limited to 'src/Hooks/sitecustomize.py')
| -rw-r--r-- | src/Hooks/sitecustomize.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Hooks/sitecustomize.py b/src/Hooks/sitecustomize.py index 97941e8..8027726 100644 --- a/src/Hooks/sitecustomize.py +++ b/src/Hooks/sitecustomize.py @@ -13,12 +13,12 @@ def abrt_daemon_ok(): except Exception, ex: # log the exception? return False - + pid = pidfile.readline() pidfile.close() if not pid: return False - + try: # pid[:-1] strips the trailing '\n' cmdline = open("/proc/%s/cmdline" % pid[:-1], "r").readline() @@ -27,7 +27,7 @@ def abrt_daemon_ok(): return False if not ("abrtd" in cmdline): return False - + return True if abrt_daemon_ok(): |
