nl_recvmsgs return code issue
prashantkumar dhotre
prashantkumardhotre at gmail.com
Tue Feb 7 21:01:57 PST 2017
Hi
nl_recvmsgs returns success (0) even in case of no data is read (i.e
if recvmsg returns 0 )
[ * @return 0 on success or a negative error code from nl_recv(). ]
Then how caller of nl_recvmsgs should get to know about remote close
(remote closed is indicated by 0 returned from recvmsg ) ?
Instead ,nl_recvmsgs () should just return whatever nl_recv returns,
so that now callers will get 0 when remote is closed.
Regards
More information about the libnl
mailing list