Sched_rr_get_interval returns EINVAL in case when the invalid pid
specified. This silence the ltp tests. Differential Revision: https://reviews.freebsd.org/D1048 Reviewed by: trasz
This commit is contained in:
parent
f680d990e8
commit
44e93b234f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283398
@ -2043,6 +2043,13 @@ linux_sched_rr_get_interval(struct thread *td,
|
||||
struct thread *tdt;
|
||||
int error;
|
||||
|
||||
/*
|
||||
* According to man in case the invalid pid specified
|
||||
* EINVAL should be returned.
|
||||
*/
|
||||
if (uap->pid < 0)
|
||||
return (EINVAL);
|
||||
|
||||
tdt = linux_tdfind(td, uap->pid, -1);
|
||||
if (tdt == NULL)
|
||||
return (ESRCH);
|
||||
|
Loading…
Reference in New Issue
Block a user