Comments (5)
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.
I'll have to reprogram my fingers to end microcom with Ctrl-\ Ctrl-\ and this problem does not show up
from labgrid.
Would this work better if labgrid would send SIGTERM to the microcom process?
from labgrid.
Look at /usr/lib/python3.5/subprocess.py:249:
def call(*popenargs, timeout=None, **kwargs):
"""Run command with arguments. Wait for command to complete or
timeout, then return the returncode attribute.
The arguments are the same as for the Popen constructor. Example:
retcode = call(["ls", "-l"])
"""
with Popen(*popenargs, **kwargs) as p:
try:
return p.wait(timeout=timeout)
except:
p.kill()
p.wait()
raise
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
from labgrid.
@saschahauer is this a still a problem that needs a workaround? Otherwise I'll close this issue.
from labgrid.
Clsoing this as no longer requiring action
from labgrid.
Related Issues (20)
- bootstrap without USB HOT 3
- docs: WARNING: autodoc: failed to import module 'eaton' from module ... HOT 3
- docs: Failed to build PDF HOT 4
- Confused by crossbar / router / coordinator HOT 2
- labgrid-webapp: 404 Not Found HOT 1
- No udisks2 device found for /dev/sdo1 HOT 2
- Command-line option to statically configure places
- question: load an Image on a raspberrypi CM4 module without using the jumper
- tox: AttributeError: module 'py' has no attribute 'io' HOT 1
- How to power off a board after quitting the console?
- Add ModbusRTUDriver remote support
- Controlling a strategy at runtime HOT 4
- Selecting the target in pytest HOT 8
- File transfer is slow HOT 10
- How to implement a recovery button? HOT 5
- Missing start of console output when booting from USB bootrom HOT 1
- Absolute paths HOT 3
- How to implement a multi-function device? HOT 8
- ser2net fails on place acquire HOT 2
- Add ability to jump in networkresource HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from labgrid.