diff options
Diffstat (limited to 'src/hooks/abrt_exception_handler.py.in')
-rw-r--r-- | src/hooks/abrt_exception_handler.py.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hooks/abrt_exception_handler.py.in b/src/hooks/abrt_exception_handler.py.in index 5b45fcd4..ace51c5c 100644 --- a/src/hooks/abrt_exception_handler.py.in +++ b/src/hooks/abrt_exception_handler.py.in @@ -35,6 +35,7 @@ def write_dump(pid, tb): try: s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) s.connect(@VAR_RUN@ + "/abrt/abrt.socket") + s.sendall("PUT / HTTP/1.1\r\n\r\n") s.sendall("PID=%s\0" % pid) s.sendall("EXECUTABLE=%s\0" % executable) s.sendall("ANALYZER=Python\0") @@ -44,7 +45,7 @@ def write_dump(pid, tb): # CCMainWindow.py:1:<module>:ZeroDivisionError: integer division or modulo by zero s.sendall("REASON=%s\0" % tb.splitlines()[0]) s.sendall("BACKTRACE=%s\0" % tb) - s.sendall("DONE\0") + # TODO: read back response and complain if it is not "xxx Created" s.close() except Exception, ex: import syslog |