We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e0998c commit 3d71647Copy full SHA for 3d71647
tmc-langs-framework/src/command.rs
@@ -11,6 +11,7 @@ use std::sync::Arc;
11
use std::thread;
12
use std::time::{Duration};
13
use os_pipe::pipe;
14
+#[cfg(unix)]
15
use shared_child::unix::SharedChildExt;
16
17
// todo: collect args?
@@ -145,7 +146,8 @@ impl TmcCommand {
145
146
let mut timed_out_handle = timed_out_clone.lock().unwrap();
147
*timed_out_handle = true;
148
- if cfg!(unix) {
149
+ #[cfg(unix)]
150
+ {
151
// Ask process to terminate nicely
152
let _res2 = child_arc_clone.send_signal(15);
153
thread::sleep(Duration::from_millis(500));
0 commit comments