Update kernel/src/services.rs

Co-authored-by: Sean Cross <sean@xobs.io>
This commit is contained in:
bunnie 2025-07-29 17:19:18 +08:00 committed by GitHub
parent 126896bf54
commit f53502d9a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1316,7 +1316,7 @@ impl SystemServices {
// return argument based upon the lazy_arg type
// we get "lucky" in that sender_idx *and* new_tid are both `usize` types underneath
if let Some(si) = sender_idx { Ok(si) } else { Ok(new_tid) }
Ok(sender_idx.unwrap_or(new_tid))
}
/// Move memory from one process to another.