• Alessandro Rubini's avatar
    unix and wrs socket: open in non-blocking mode and report write errors · 4c6953fb
    Alessandro Rubini authored
    It may happen, though rarely, that frames are not sent (or not freed
    at kernel level), and we build up an output queue, so at some point we
    get -EAGAIN on sending.
    
    With blocking writes, this situation was stalling the whole process.
    This patch helped us diagnosing a problem in our own network driver,
    which had a memory leakage, but using non-blocking sockets and
    reporting erors is the right thing to do anyways.
    
    This patch reports the error using pp_diag with a priority 0; thus
    the message is always printed, but by virtue of pp_diag we have the
    name of the port automatically added.
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    4c6953fb
Name
Last commit
Last update
arch-bare-i386 Loading commit data...
arch-bare-x86-64 Loading commit data...
arch-sim Loading commit data...
arch-unix Loading commit data...
arch-wrpc Loading commit data...
arch-wrs Loading commit data...
configs Loading commit data...
doc Loading commit data...
etc Loading commit data...
include/ppsi Loading commit data...
lib Loading commit data...
lib-bare Loading commit data...
pp_printf Loading commit data...
proto-ext-whiterabbit Loading commit data...
proto-standard Loading commit data...
scripts Loading commit data...
time-bare Loading commit data...
time-sim Loading commit data...
time-unix Loading commit data...
time-wrpc Loading commit data...
time-wrs Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LIB Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
diag.c Loading commit data...
fsm.c Loading commit data...