diff options
| author | Ellie Huxtable <ellie@atuin.sh> | 2024-07-16 20:32:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-16 20:32:18 +0100 |
| commit | 39824db32a1e6a1b794f3d0b8a1cce385dece19b (patch) | |
| tree | 792951bd499c5adaaa758e0c8b1ca82f687b329e /ui/backend/src/run | |
| parent | chore(release): prepare for release v18.4.0-beta.2 (#2287) (diff) | |
| download | atuin-39824db32a1e6a1b794f3d0b8a1cce385dece19b.zip | |
fix(gui): kill child on block stop (#2288)
Diffstat (limited to 'ui/backend/src/run')
| -rw-r--r-- | ui/backend/src/run/pty.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/backend/src/run/pty.rs b/ui/backend/src/run/pty.rs index 382b45dd..819dc7d0 100644 --- a/ui/backend/src/run/pty.rs +++ b/ui/backend/src/run/pty.rs @@ -87,6 +87,7 @@ pub(crate) async fn pty_kill( state: tauri::State<'_, AtuinState>, ) -> Result<(), String> { let pty = state.pty_sessions.write().await.remove(&pid).unwrap(); + pty.kill_child().await.map_err(|e|e.to_string())?; println!("RIP {pid:?}"); Ok(()) |
