Skip to content
Snippets Groups Projects
Commit 55815edc authored by Stefano Sabatini's avatar Stefano Sabatini Committed by Anton Khirnov
Browse files

prefer avio_check() over url_exist()


The problem with url_exist() is that it tries to open a resource in
RDONLY mode. If the file is a FIFO and there is already a reading
client, the open() call will hang.

By using avio_check() with access mode of 0, the second reading
process will check if the file exists without attempting to open it,
thus avoiding the lock.

Fix issue #1663.

Signed-off-by: default avatarAnton Khirnov <anton@khirnov.net>
parent 59d96941
No related branches found
No related tags found
No related merge requests found
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