diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-11 19:50:56 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-11 19:50:56 +0100 |
| commit | 4c73c0ad1f7ab48e0b7696750c4aa61da7c0c19b (patch) | |
| tree | f2c4140f11affcbe4434953f0c50691aae9154c0 /src | |
| parent | df2fbfeab202df0e1c61e5ede5ebc2998a6b8942 (diff) | |
| parent | b2903ca6b5ddf65d4e9f390649797546568c0170 (diff) | |
Merge branch 'master' into rhel6
Diffstat (limited to 'src')
| -rw-r--r-- | src/Gui/report.glade | 3 | ||||
| -rw-r--r-- | src/Hooks/abrt_exception_handler.py.in | 14 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/Gui/report.glade b/src/Gui/report.glade index cff0dc8..7b3aac4 100644 --- a/src/Gui/report.glade +++ b/src/Gui/report.glade @@ -302,6 +302,7 @@ <property name="height_request">200</property> <property name="visible">True</property> <property name="can_focus">True</property> + <property name="accepts_tab">False</property> </object> </child> </object> @@ -377,6 +378,7 @@ <property name="visible">True</property> <property name="can_focus">True</property> <property name="wrap_mode">word-char</property> + <property name="accepts_tab">False</property> </object> </child> </object> @@ -414,6 +416,7 @@ <property name="visible">True</property> <property name="can_focus">True</property> <property name="wrap_mode">word-char</property> + <property name="accepts_tab">False</property> </object> </child> </object> diff --git a/src/Hooks/abrt_exception_handler.py.in b/src/Hooks/abrt_exception_handler.py.in index 89f3013..b5e15b8 100644 --- a/src/Hooks/abrt_exception_handler.py.in +++ b/src/Hooks/abrt_exception_handler.py.in @@ -59,8 +59,22 @@ def handleMyException((etype, value, tb)): return sys.__excepthook__(etype, value, tb) try: + import os import os.path import traceback + import errno + + # EPIPE is not a crash, it happens all the time + # Testcase: script.py | true, where script.py is: + ## #!/usr/bin/python + ## import os + ## import time + ## time.sleep(1) + ## os.write(1, "Hello\n") # print "Hello" wouldn't be the same + # + if etype == IOError or etype == OSError: + if value.errno == errno.EPIPE: + return sys.__excepthook__(etype, value, tb) # "-c" appears in this case: # $ python -c 'import sys; print "argv0 is:%s" % sys.argv[0]' |
