mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
iochannel: remove fd from poll() when we don't care from events
This should make it unlikely that we loop on SIGHUP indefinitely. Also, this makes it possible for callbacks not to process all events and still not busy loop.
This commit is contained in:
parent
b5e30764c4
commit
028aa734f8
2 changed files with 75 additions and 57 deletions
|
|
@ -38,11 +38,6 @@
|
|||
the channel a callback function is called. It is safe to destroy
|
||||
the calling iochannel object from the callback */
|
||||
|
||||
/* When pa_iochannel_is_readable() returns non-zero, the user has to
|
||||
* call this function in a loop until it is no longer set or EOF
|
||||
* reached. Otherwise strange things may happen when an EOF is
|
||||
* reached. */
|
||||
|
||||
typedef struct pa_iochannel pa_iochannel;
|
||||
|
||||
/* Create a new IO channel for the specified file descriptors for
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue