DORMANTno replies

[uml-devel] [PATCH 9/10] UML - return a real error code

From: Jeff Dike <hidden>
Date: 2005-09-14 22:27:11
Also in: lkml

do_aio used to return -1 on error instead of errno.

Signed-off-by: Jeff Dike <redacted>

Index: test/arch/um/os-Linux/aio.c
===================================================================
--- test.orig/arch/um/os-Linux/aio.c	2005-09-14 15:47:30.000000000 -0400
+++ test/arch/um/os-Linux/aio.c	2005-09-14 15:48:04.000000000 -0400
@@ -117,6 +117,7 @@
         err = io_submit(ctx, 1, &iocbp);
         if(err > 0)
                 err = 0;
+	else err = -errno;
 
  out:
         return err;



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help