feat(command): implement Drop for CommandChild with kill_on_drop option (#3149)

* feat(command): implement Drop for CommandChild with kill_on_drop option

* fmt

* log

* merge fixes, docs

* clippy

* Apply suggestion from @lucasfernog [skip ci]

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
This commit is contained in:
TungliesandLucas Nogueira authored and GitHub committed 2026-10-16 09:00:00 -03:00
1 parent 0bd82c829b
commit 738c323cfc
2 files changed
+104 -2

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
---
"shell": minor:feat
"shell-js": minor:feat
---
Add `Command::kill_on_drop` to kill the spawned process (or its process group / job object when `Command::set_process_group` is enabled) when its `CommandChild` is dropped.