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)
Sun, Oct 26, 11:46 PM
Unknown Object (File)
Sun, Oct 26, 9:55 PM
Unknown Object (File)
Fri, Oct 24, 4:29 AM
Unknown Object (File)
Tue, Oct 21, 11:38 PM
Unknown Object (File)
Thu, Oct 16, 4:52 PM
Unknown Object (File)
Sep 20 2025, 1:48 AM
Unknown Object (File)
Sep 19 2025, 9:24 PM
Unknown Object (File)
Sep 19 2025, 8:47 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.