[Asterisk-Dev] EAGAIN rtp.c

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Mon Jul 12 20:00:22 MST 2004

On Monday 12 July 2004 19:39, Wolfgang S. Rupprecht wrote:
> Under unix and bsd EAGAIN simply means someone set the socket to
> non-blocking and proceeded to read the socket before any data
> arrived.

EAGAIN can also occur with an interrupted system call.  On some
systems (not Linux), system calls are not interruptible or are not
restartable, if they are interrupted.

> Here the code is treating EAGAIN as if it were some error.  Is this
> a linux thing that I need to note or is it a bug?

Probably a bug.


More information about the asterisk-dev mailing list