Improve top.diff to include faulthandler.

(grafted from 3e98153750b679887d39475365411ced3ad506e8)
This commit is contained in:
Albert Cervera i Areny 2016-03-10 19:10:04 +01:00
parent 31f424b006
commit 4359cd312d

View file

@ -44,6 +44,7 @@ diff -r 649b0805fa93 trytond/protocols/top.py
+import signal
+import locale
+import sys
+import faulthandler
+from operator import itemgetter
+from datetime import datetime
+
@ -114,6 +115,7 @@ diff -r 649b0805fa93 trytond/protocols/top.py
+ print '=' * 30
+
+signal.signal(signal.SIGUSR1, signal_user_handler)
+faulthandler.register(signal.SIGUSR2)
+
+
+def add(value):