Handle -NLE_AGAIN in nl_cache_mngr_data_ready
Since commit "nl: Return -NLE_AGAIN if non-blocking socket would block", nl_cache_mngr_data_ready returns -NLE_AGAIN to callers on non-blocking sockets. Change it to consider -NLE_AGAIN as a non-error case as it is expected behavior with the nl_recv changes. Signed-off-by: Thomas Graf <tgraf@suug.ch>
This commit is contained in:
parent
87bbfb6b12
commit
53ac502a2b
1 changed files with 1 additions and 1 deletions
|
@ -435,7 +435,7 @@ int nl_cache_mngr_data_ready(struct nl_cache_mngr *mngr)
|
|||
}
|
||||
|
||||
nl_cb_put(cb);
|
||||
if (err < 0)
|
||||
if (err < 0 && err != -NLE_AGAIN)
|
||||
return err;
|
||||
|
||||
return nread;
|
||||
|
|
Loading…
Add table
Reference in a new issue