Page MenuHomeFreeBSD

Sched_rr_get_interval returns EINVAL in case when invalid pid specified. This silence the ltp tests.
ClosedPublic

Authored by dchagin on Oct 31 2014, 6:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jul 4, 4:25 AM
Unknown Object (File)
Jun 25 2025, 1:52 AM
Unknown Object (File)
Jun 19 2025, 10:04 PM
Unknown Object (File)
Jun 18 2025, 4:48 AM
Unknown Object (File)
Jun 16 2025, 4:35 PM
Unknown Object (File)
Jun 16 2025, 10:54 AM
Unknown Object (File)
Jun 15 2025, 9:34 AM
Unknown Object (File)
Jun 10 2025, 7:51 AM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dchagin retitled this revision from to Sched_rr_get_interval returns EINVAL in case when invalid pid specified. This silence the ltp tests..
trasz added inline comments.
sys/compat/linux/linux_misc.c
1949 ↗(On Diff #2178)

Can you add a comment above explaining the purpose of this check?

sys/compat/linux/linux_misc.c
1949 ↗(On Diff #2178)

This is typical check to shut up LTP test as instead of EINVAL we returns ESRCH. According to man 2 sched_rr_get_interval should return EINVAL in case invalid pid specified.

trasz added a reviewer: trasz.
trasz added inline comments.
sys/compat/linux/linux_misc.c
1949 ↗(On Diff #2178)

Ok. Still, it would be nice to have this inside the comment. No biggie, though.

This revision is now accepted and ready to land.Dec 8 2014, 12:13 PM
dchagin edited edge metadata.

inline comment added.

This revision now requires review to proceed.Jan 7 2015, 8:12 AM
trasz edited edge metadata.
This revision is now accepted and ready to land.Mar 21 2015, 5:15 PM
This revision was automatically updated to reflect the committed changes.