From: Erik Hugne Date: Mon, 9 Mar 2015 09:43:42 +0000 (+0100) Subject: tipc: fix inconsistent signal handling regression X-Git-Tag: omap-for-v4.2/o2_dc~131^2~294 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=143fe22f50a8be855bba77b5b2dc9dd1a5982b1c;p=pandora-kernel.git tipc: fix inconsistent signal handling regression Commit 9bbb4ecc6819 ("tipc: standardize recvmsg routine") changed the sleep/wakeup behaviour for sockets entering recv() or accept(). In this process the order of reporting -EAGAIN/-EINTR was reversed. This caused problems with wrong errno being reported back if the timeout expires. The same problem happens if the socket is nonblocking and recv()/accept() is called when the process have pending signals. If there is no pending data read or connections to accept, -EINTR will be returned instead of -EAGAIN. Signed-off-by: Erik Hugne Reviewed-by: Ying Xue Reviewed-by: Jon Maloy Reported-by László Benedek Signed-off-by: David S. Miller --- Reading git-diff-tree failed