The man page of recvmsg(2) does not mention that recvmsg() can legitimately return 0 in the case that the socket has closed and no received data is pending. See the RETURN VALUE section in SUSv2: http://pubs.opengroup.org/onlinepubs/007908799/xns/recvmsg.html How-To-Repeat: man recvmsg
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped