]> git.tuebingen.mpg.de Git - paraslash.git/commit - dccp_send.c
Merge branch 'refs/heads/t/poll'
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 11 Sep 2022 14:34:12 +0000 (16:34 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 11 Sep 2022 14:35:30 +0000 (16:35 +0200)
commitb142089267ef501e438c3dc77ecf19bead3d4e58
tree6c1d4d5825e29871d21cf37ecd143163858056b7
parent4314f515abc204cc1696427f34aa9822d1a7150b
parentcdbc8067a2e27ee7f9e0d8ff11cf415603fc0558
Merge branch 'refs/heads/t/poll'

This series modifies all calls to select(2) to use poll(2) instead in
order to avoid the known shortcomings of the select API, in particular
its limit of at most 1024 file descriptors and the fact that fds above
1023 cannot be monitored with select(2) even if fewer than 1024 fds
are open.

The first patches of the series prepare this switch, converting the
easy cases, hiding select specific data structures such as fd sets,
and adjusting function names and documentation. The crucial commit
is the last one. See its rather verbose log message for details.

* refs/heads/t/poll:
  Switch from select(2) to poll(2).
  Rename ->{pre,post}_select methods to ->{pre,post}_monitor.
  Misc documentation cleanups related to select().
  stdin/stdout: Streamline documentation of {pre,post}_select().
  Consolidate receiver/filter/writer {pre,post}_select() docs.
  Hide implementation of para_fd_set().
  send: Avoid select-specific arguments in {pre,post}_select().
  sched: Introduce sched_{read,write}_ok().
  audiod: Rename handle_connect().
  net: Drop fd_set parameter from para_accept().
  fd: Drop fd_set parameter from read_nonblock() and friends.
  interactive: Avoid select(2) in input_available().
  fd.c: Prefer poll(2) over select(2) for write_ok().
  sched: Use integer value for select timeout.
NEWS.md
configure.ac