Commit 688825a
Damien Tournoud
Properly close the command when the connection close unexpectedly.
We need to properly handle three cases:
- eofReceived(): we receive an EOF on the SSH channel, we need to
close the stdin of the process and let it deal with that.
- closed(): the connection is closed, we need to kill the process
- the connection is closed while we were (asynchronously)
authenticating: we need to not open the process.
Most of the code is taken straight from `twisted.conch.unix`.1 parent 12fe0b1 commit 688825a
1 file changed
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
292 | 297 | | |
293 | 298 | | |
294 | 299 | | |
| |||
297 | 302 | | |
298 | 303 | | |
299 | 304 | | |
300 | | - | |
| 305 | + | |
301 | 306 | | |
302 | | - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
303 | 310 | | |
304 | | - | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
305 | 318 | | |
306 | 319 | | |
307 | 320 | | |
| |||
0 commit comments