diff --git a/src/syscall/process.rs b/src/syscall/process.rs index a88fdabb8e0ee845e386766e3de4fd57fcbee1b1..8fb55748d463b420ffbbd72735a0b1e29abf5c56 100644 --- a/src/syscall/process.rs +++ b/src/syscall/process.rs @@ -567,7 +567,7 @@ fn fexec_noreturn( let context_lock = contexts.current().ok_or(Error::new(ESRCH)).expect("exec_noreturn pid not found"); let mut context = context_lock.write(); - context.name = Arc::new(Mutex::new(name.clone())); + context.name = Arc::new(Mutex::new(name)); empty(&mut context, false);