This patch shortens the spawned threads' names, as threads on Linux
have an upper limit of 16 characters for their names.
This commit is contained in:
@@ -68,7 +68,7 @@ impl FlycheckHandle {
|
||||
let actor = FlycheckActor::new(id, sender, config, workspace_root);
|
||||
let (sender, receiver) = unbounded::<Restart>();
|
||||
let thread = jod_thread::Builder::new()
|
||||
.name("FlycheckThread".to_owned())
|
||||
.name("Flycheck".to_owned())
|
||||
.spawn(move || actor.run(receiver))
|
||||
.expect("failed to spawn thread");
|
||||
FlycheckHandle { sender, thread }
|
||||
@@ -270,7 +270,7 @@ impl CargoHandle {
|
||||
let (sender, receiver) = unbounded();
|
||||
let actor = CargoActor::new(child_stdout, sender);
|
||||
let thread = jod_thread::Builder::new()
|
||||
.name("CargoHandleThread".to_owned())
|
||||
.name("CargoHandle".to_owned())
|
||||
.spawn(move || actor.run())
|
||||
.expect("failed to spawn thread");
|
||||
CargoHandle { child, thread, receiver }
|
||||
|
||||
Reference in New Issue
Block a user