Skip to content
Snippets Groups Projects
Commit 10384d80 authored by Igor Kovalenko's avatar Igor Kovalenko
Browse files

mainloop-test: Disarm io callback on EOF

Mainloop test uses io callback for PA_IO_EVENT_INPUT on stdin.

With glib enabled PA_IO_EVENT_INPUT translates to glib G_IO_IN event which also
matches descriptor in EOF state. While io callback does not check for EOF after
reading from file descriptor this is causing mainloop-test to repeatedly read 0
bytes once EOF is reached, rearm defer callback and spam test log.

Fix this by disarming io callback when EOF is reached in test run.

Part-of: <!625>
parent 53e3b534
No related branches found
No related tags found
1 merge request!625mainloop-test: Disarm io callback on EOF
Pipeline #397369 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment