-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regular termination of microcom should not lead to a backtrace #151
Comments
It turned out I end microcom with Ctrl-\ Ctrl-c. In this case the Ctrl-c is no longer delivered to microcom (which would then restore the terminal settings), but to Python, which then prints the backtrace. microcom is then ended without the signal handler being executed and the terminal may be garbled. |
Would this work better if labgrid would send SIGTERM to the microcom process? |
Look at /usr/lib/python3.5/subprocess.py:249: def call(*popenargs, timeout=None, **kwargs):
Here is the problem: Both python and microcom receive the Ctrl-C. If python comes to first handle the Ctrl-C then microcom will be killed and thus cannot cleanup the terminal |
@saschahauer is this a still a problem that needs a workaround? Otherwise I'll close this issue. |
Clsoing this as no longer requiring action |
When microcom is ended using keyboard shortcut (microcom ends successfully in this case) no backtrace should be printed as this is normal and expected usage. Instead we get this backtrace:
The text was updated successfully, but these errors were encountered: