[Cbe-oss-dev] [PATCH] libspe2: Fix exit status for isolation error
Kazunori Asayama
asayama at sm.sony.co.jp
Fri Nov 16 17:22:05 EST 2007
This patch fixes the return value and errno of spe_context_run in
case of isolation error.
Signed-off-by: Kazunori Asayama <asayama at sm.sony.co.jp>
OK to apply ?
---
spebase/run.c | 2 ++
1 file changed, 2 insertions(+)
Index: b/spebase/run.c
===================================================================
--- a/spebase/run.c 2007-11-15 14:51:37.000000000 +0900
+++ b/spebase/run.c 2007-11-15 15:00:26.000000000 +0900
@@ -313,6 +313,8 @@ do_run:
stopinfo->stop_reason = SPE_ISOLATION_ERROR;
stopinfo->result.spe_isolation_error =
stopcode & 0xf;
+ errno = EFAULT;
+ retval = -1;
}
} else if (spe->base_private->flags & SPE_ISOLATE &&
More information about the cbe-oss-dev
mailing list