[FFmpeg-devel] [PATCH] libavformat: Don't return errors if select is interrupted

Luca Abeni lucabe72
Fri Mar 5 08:17:04 CET 2010


Martin Storsj? wrote:
> Hi,
> 
> Currently, most network protocols wait for data with a select loop, with a 
> 100 ms timeout and recheck url_interrupt_cb() for each round in the loop. 
> If the select is interrupted (e.g. by a signal), most of the protocols 
> return an error, even if a similar interruption in recv is handled by 
> retrying. The attached patch makes the protocols simply retry select if it 
> returned with EINTR or EAGAIN, instead of returning an error in these 
> cases.

I think the idea was to let the application cope with EINTR and EAGAIN,
but I might be misremembering (and I have no strong opinions on it :)


				Luca



More information about the ffmpeg-devel mailing list