Skip to contentSkip to conversation

UML - return a real error code

PATCH In review Jeff Dike 1 participant 1 message Sep 14, 2005 User-mode Linux (UML)

lore
Share & tools
lore

Jeff Dike

author
#0 lore raw

PATCH 9/10 UML - return a real error code

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

arch/um/os-Linux/aio.c +1 -0
Index: test/arch/um/os-Linux/aio.c
===================================================================
@@ -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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel