src/worker_task.rs: set thread name

This commit is contained in:
Dietmar Maurer 2020-02-13 08:24:58 +01:00
parent a79ce5d618
commit 7e108c81f7

View File

@ -46,9 +46,9 @@ impl BackupTask {
let (command_tx, command_rx) = channel(); let (command_tx, command_rx) = channel();
let worker = std::thread::spawn(move || { let worker = std::thread::Builder::new().name(String::from("proxmox-backup-qemu-main-worker")).spawn(move || {
backup_worker_task(setup, crypt_config, connect_tx, command_rx) backup_worker_task(setup, crypt_config, connect_tx, command_rx)
}); })?;
connect_rx.recv()??; // sync connect_rx.recv()??; // sync