mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 09:53:24 +00:00
Support more clock ids
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
c84efe7a90
commit
e952a16954
@ -61,7 +61,7 @@ pub fn sys_get_priority(which: i32, who: u32) -> Result<SyscallReturn> {
|
||||
fn get_processes(prio_target: PriorityTarget) -> Result<Vec<Arc<Process>>> {
|
||||
Ok(match prio_target {
|
||||
PriorityTarget::Process(pid) => {
|
||||
let process = process_table::get_process(&pid).ok_or(Error::new(Errno::ESRCH))?;
|
||||
let process = process_table::get_process(pid).ok_or(Error::new(Errno::ESRCH))?;
|
||||
vec![process]
|
||||
}
|
||||
PriorityTarget::ProcessGroup(pgid) => {
|
||||
|
Reference in New Issue
Block a user