Page MenuHomeFreeBSD

tests: Demonstrate a bug in ppoll() and pselect().
ClosedPublic

Authored by des on Mon, Nov 25, 5:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 12, 2:12 AM
Unknown Object (File)
Thu, Dec 5, 4:11 AM
Unknown Object (File)
Tue, Dec 3, 1:01 PM
Unknown Object (File)
Tue, Dec 3, 1:01 PM
Unknown Object (File)
Tue, Dec 3, 12:39 PM
Unknown Object (File)
Tue, Dec 3, 12:39 PM
Unknown Object (File)
Tue, Dec 3, 12:39 PM
Unknown Object (File)
Fri, Nov 29, 7:47 PM
Subscribers

Details

Summary

This test demonstrates that ppoll() and pselect() can return 0 after a
signal was caught. This happens when the signal occurs after the
timeout has been reached but before the signal mask is restored on
return to user space.

Sponsored by: Klara, Inc.
Sponsored by: NetApp, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Mon, Nov 25, 5:16 PM

Sorry, I appear to have oversimplified the test case, I will amend it shortly

markj added a subscriber: markj.
markj added inline comments.
tests/sys/kern/prace.c
97

Extra newline.

104

I think some comment explaining what these tests are exercising would be useful.

This revision is now accepted and ready to land.Mon, Nov 25, 8:15 PM
des marked 2 inline comments as done.Tue, Nov 26, 8:38 PM