CVSROOT: /cvs Module name: src Changes by: [email protected] 2014/11/25 16:52:10
Modified files:
usr.sbin/tftpd : tftpd.c
Log message:
evbuffer_read and evbuffer_write are wrappers around read and write,
so you have to check their return values in the same way and handle
errors the same way.
returning 0 from evbuffer_read means the other end of the socket
has gone away.
we should try again on both evbuffer_read and evbuffer_write if we
get EAGAIN or EINTR.
ok millert@ bluhm@
