@@ -23,7 +23,8 @@ use crate::windows as imp;
23
23
/// use kill_tree::{blocking::kill_tree, get_available_max_process_id, Result};
24
24
///
25
25
/// fn main() -> Result<()> {
26
- /// let _ = kill_tree(get_available_max_process_id())?;
26
+ /// let target_process_id = get_available_max_process_id(); // Replace with your target process ID.
27
+ /// let _ = kill_tree(target_process_id)?;
27
28
/// Ok(())
28
29
/// }
29
30
/// ```
@@ -70,11 +71,12 @@ pub fn kill_tree(process_id: ProcessId) -> Result<Outputs> {
70
71
/// };
71
72
///
72
73
/// fn main() -> Result<()> {
74
+ /// let target_process_id = get_available_max_process_id(); // Replace with your target process ID.
73
75
/// let config = Config {
74
76
/// signal: String::from("SIGKILL"),
75
77
/// ..Default::default()
76
78
/// };
77
- /// let _ = kill_tree_with_config(get_available_max_process_id() , &config)?;
79
+ /// let _ = kill_tree_with_config(target_process_id , &config)?;
78
80
/// Ok(())
79
81
/// }
80
82
/// ```
@@ -86,11 +88,12 @@ pub fn kill_tree(process_id: ProcessId) -> Result<Outputs> {
86
88
/// };
87
89
///
88
90
/// fn main() -> Result<()> {
91
+ /// let target_process_id = get_available_max_process_id(); // Replace with your target process ID.
89
92
/// let config = Config {
90
93
/// include_target: false,
91
94
/// ..Default::default()
92
95
/// };
93
- /// let _ = kill_tree_with_config(get_available_max_process_id() , &config)?;
96
+ /// let _ = kill_tree_with_config(target_process_id , &config)?;
94
97
/// Ok(())
95
98
/// }
96
99
/// ```
0 commit comments