Commit 2e5cd7e
committed
client: fix console --loop on microcom error
In certain situation, e.g. if the serial port vanishes (i.e. on-board
FTDI chips on power off), microcom returns with 1 and:
Got EOF from port
connection lost
The loop should still continue, so do not raise an exception in this
case.
This uncovers another problem: if the corresponding place is released,
ser2net is stopped from the exporter and the port is set to None. Check
that after updating the resource to prevent a crude AssertionError later
due to an unavailable port.
Fixes: cdebb1c ("remote/client: return exit code for ssh/scp/rsync/telnet/video/audio/console")
Signed-off-by: Bastian Krause <bst@pengutronix.de>1 parent b1d302b commit 2e5cd7e
1 file changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
809 | 809 | | |
810 | 810 | | |
811 | 811 | | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
812 | 816 | | |
813 | 817 | | |
814 | 818 | | |
| |||
852 | 856 | | |
853 | 857 | | |
854 | 858 | | |
855 | | - | |
856 | | - | |
857 | | - | |
858 | | - | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
859 | 862 | | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
860 | 867 | | |
861 | 868 | | |
862 | 869 | | |
| |||
0 commit comments