Bug 1875
Summary: | poll() isn't SUSv3 compliant-- See Bug 546 | ||
---|---|---|---|
Product: | IO/Storage | Reporter: | Loic Domaigne (loic-dev) |
Component: | Other | Assignee: | io_other |
Status: | REJECTED INVALID | ||
Severity: | normal | ||
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | virtually all | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Bug Depends on: | 546 | ||
Bug Blocks: |
Description
Loic Domaigne
2004-01-15 15:21:42 UTC
Linus quoth:
> > It appears to be a bug: poll doesn't notice close calls and thus doesn't
> > wake up.
That's not a bug, it's a feature.
The fd isn't closed. It's open when the poll starts, and poll will have a
reference to the thing. So it never did close as far as poll is concerned.
A threaded app that depends on some close semantics is just broken, and
SuS or not doesn't matter.
Besides, the SuS part quoted in no way implies that the Linux semantics
are broken.
> The fd isn't closed. It's open when the poll starts, and poll will have a > reference to the thing. So it never did close as far as poll is concerned. I can understand that. > A threaded app that depends on some close semantics is just broken, and > SuS or not doesn't matter. I fully agree with that point of view, and so did others too. See e.g. http://www.opengroup.org/austin/mailarchives/austin-group-l/msg06554.html http://www.opengroup.org/austin/mailarchives/austin-group-l/msg06560.html http://www.opengroup.org/austin/mailarchives/austin-group-l/msg06562.html Seems that it's not necessarily straightforward for poll(), but not worth the effort IMHO. > Besides, the SuS part quoted in no way implies that the Linux semantics are > broken. Not really sure on that, and that's would be nice to know why. But, gee, I guess you have likely more urgent things to manage ;-) I suggest to reject that bug as INVALID like the previous one, and hope this discussion will serve for future references if someone has doubts about the Linux poll(). Thanks for your time, Loic. |