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)
Wed, May 1, 12:19 AM
Unknown Object (File)
Tue, Apr 30, 8:50 PM
Unknown Object (File)
Tue, Apr 30, 7:06 PM
Unknown Object (File)
Dec 25 2023, 9:37 AM
Unknown Object (File)
Dec 13 2023, 3:55 AM
Unknown Object (File)
Nov 23 2023, 2:48 PM
Unknown Object (File)
Nov 12 2023, 2:39 AM
Unknown Object (File)
Jun 8 2023, 4:19 PM
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.