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
F106270764: D1048.diff
Sat, Dec 28, 7:24 AM
Unknown Object (File)
Wed, Dec 18, 4:10 AM
Unknown Object (File)
Wed, Dec 18, 3:22 AM
Unknown Object (File)
Sat, Nov 30, 10:21 PM
Unknown Object (File)
Thu, Nov 28, 12:31 PM
Unknown Object (File)
Thu, Nov 28, 12:31 PM
Unknown Object (File)
Thu, Nov 28, 12:31 PM
Unknown Object (File)
Thu, Nov 28, 12:31 PM
Subscribers

Diff Detail

Lint
No Lint Coverage
Unit
No Test Coverage

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

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

sys/compat/linux/linux_misc.c
1949

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

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.