Drain the waiters tied to all the selfd belonging the specified selinfo. */
| 1766 | |
| 1767 | /* Drain the waiters tied to all the selfd belonging the specified selinfo. */ |
| 1768 | void |
| 1769 | seldrain(struct selinfo *sip) |
| 1770 | { |
| 1771 | |
| 1772 | /* |
| 1773 | * This feature is already provided by doselwakeup(), thus it is |
| 1774 | * enough to go for it. |
| 1775 | * Eventually, the context, should take care to avoid races |
| 1776 | * between thread calling select()/poll() and file descriptor |
| 1777 | * detaching, but, again, the races are just the same as |
| 1778 | * selwakeup(). |
| 1779 | */ |
| 1780 | doselwakeup(sip, -1); |
| 1781 | } |
| 1782 | |
| 1783 | /* |
| 1784 | * Record a select request. |
no test coverage detected