Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changes/change-pr-2224.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"shell": patch
"shell-js": patch
---

Use &self instead of self to allow kill to be called multiple times.
2 changes: 1 addition & 1 deletion plugins/shell/src/process/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl CommandChild {
}

/// Sends a kill signal to the child.
pub fn kill(self) -> crate::Result<()> {
pub fn kill(&self) -> crate::Result<()> {
self.inner.kill()?;
Ok(())
}
Expand Down
Loading