]> granicus.if.org Git - libnl/commit
nl: Return -NLE_AGAIN if non-blocking socket would block
authorThomas Graf <tgraf@suug.ch>
Tue, 2 Apr 2013 09:58:18 +0000 (11:58 +0200)
committerThomas Graf <tgraf@suug.ch>
Tue, 2 Apr 2013 09:58:18 +0000 (11:58 +0200)
commit375a6294a41e003f873821a01d947f0ecfaf76d4
tree632394eb6c380e9f75c4731049a5edec931d0a71
parentdf66b0f267af636848d7f0301d3f5863c58fb313
nl: Return -NLE_AGAIN if non-blocking socket would block

Previously 0 was returned which gave the caller no chance of detecting
when a non-blocking socket would block. If a caller intends to never
see an error message it should utilize poll()/select() to only read
when the socket has pending data or information.

Reported-by: Holger Eitzenberger <holger@eitzenberger.org>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
lib/nl.c