From 46120a30db6252a5e7a9e527132589be62f8ee28 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Wed, 1 Feb 2012 16:41:03 +0100 Subject: [PATCH] smpirun: report exit status. --- src/smpi/smpirun.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/smpi/smpirun.in b/src/smpi/smpirun.in index ad8295b63e..4bc0c03b9e 100755 --- a/src/smpi/smpirun.in +++ b/src/smpi/smpirun.in @@ -269,6 +269,7 @@ if [ -n "${KEEP}" ] ; then echo ${EXEC} ${SIMOPTS} ${TRACEOPTIONS} ${PLATFORMTMP} ${APPLICATIONTMP} fi ${EXEC} ${SIMOPTS} ${TRACEOPTIONS} ${PLATFORMTMP} ${APPLICATIONTMP} +status=$? if [ -z "${KEEP}" ] ; then if [ -z "${PLATFORM}" ]; then @@ -276,3 +277,5 @@ if [ -z "${KEEP}" ] ; then fi rm ${APPLICATIONTMP} fi + +exit $status -- 2.20.1