Index: src/trusted/desc/nrd_xfer.c |
=================================================================== |
--- src/trusted/desc/nrd_xfer.c (revision 3440) |
+++ src/trusted/desc/nrd_xfer.c (working copy) |
@@ -358,6 +358,12 @@ |
*/ |
if (0 != (flags & NACL_DONT_WAIT) && NaClWouldBlock()) { |
retval = -NACL_ABI_EAGAIN; |
+ } else if (-NACL_ABI_EMSGSIZE == retval) { |
+ /* |
+ * Allow the above layer to process when imc_sendmsg calls fail due |
+ * to the OS not supporting a large enough buffer. |
+ */ |
+ retval = -NACL_ABI_EMSGSIZE; |
} else { |
/* |
* TODO(bsy): the else case is some mysterious internal error. |