You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice that Python sucks and does SIGPIPE annoyances, for now work around
by grepping the output file...
Fix the exit status read check with 'b', it broke down occasionally with:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 1832: invalid start byte
Copy file name to clipboardExpand all lines: common.py
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -310,10 +310,19 @@ def run_cmd(
310
310
delenv[key]
311
311
ifshow_cmd:
312
312
print_cmd(cmd, cmd_file, extra_env=extra_env)
313
+
313
314
# Otherwise Ctrl + C gives:
314
315
# - ugly Python stack trace for gem5 (QEMU takes over terminal and is fine).
315
316
# - kills Python, and that then kills GDB: https://stackoverflow.com/questions/19807134/does-python-always-raise-an-exception-if-you-do-ctrlc-when-a-subprocess-is-exec
317
+
sigint_old=signal.getsignal(signal.SIGINT)
316
318
signal.signal(signal.SIGINT, signal.SIG_IGN)
319
+
320
+
# Otherwise BrokenPipeError when piping through | grep
321
+
# But if I do this, my terminal gets broken at the end. Why, why, why.
0 commit comments