Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Document one of midjy's changes (+cosmetics)
[simgrid.git] / src / smpi / smpirun.in
index ad8295b63eae27bfc66265bfcfa8592c1b9c5665..4bc0c03b9eb9ae9e45746351bc4db864f7655d2d 100755 (executable)
@@ -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