Index: build/android/adb_logcat_monitor.py |
diff --git a/build/android/adb_logcat_monitor.py b/build/android/adb_logcat_monitor.py |
index 35ef7905b24fcb9a30506f5e0d246d3f52085214..a2acfd1520b69e3aef0bed4309636bab214fcb9b 100755 |
--- a/build/android/adb_logcat_monitor.py |
+++ b/build/android/adb_logcat_monitor.py |
@@ -108,12 +108,12 @@ def main(base_dir, adb_cmd='adb'): |
# Set up the alarm for calling 'adb devices'. This is to ensure |
# our script doesn't get stuck waiting for a process response |
- def TimeoutHandler(_, unused_frame): |
+ def TimeoutHandler(_signum, _unused_frame): |
raise TimeoutException() |
signal.signal(signal.SIGALRM, TimeoutHandler) |
# Handle SIGTERMs to ensure clean shutdown |
- def SigtermHandler(_, unused_frame): |
+ def SigtermHandler(_signum, _unused_frame): |
raise SigtermError() |
signal.signal(signal.SIGTERM, SigtermHandler) |